Error in brule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2015 10:04 PM
Hi All,
I am getting an error when using
car str= new GlideStringUtil() and
var a = new sysAttachment()
error message - illegal access of GlideStringUtil in the script

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2015 10:18 PM
Hi Vimal,
GlideStringUtil is not allowed in scoped applications.
Please let me know if you have any questions.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2015 01:27 AM
Can confirm this
Evaluator: java.lang.SecurityException: Invalid object in scoped script: [JavaClass com.glide.util.StringUtil]
Caused by error in script at line 1
==> 1: var str = new global.GlideStringUtil();
Evaluator: java.lang.SecurityException: Invalid object in scoped script: [JavaClass com.glide.util.StringUtil]
Caused by error in script at line -1
Background message, type:error, message: Invalid object in scoped script: [JavaClass com.glide.util.StringUtil]
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2015 10:21 PM
Well GlideStringUtil shouldn't through this error because you are using Glide Class and not java package. Have a look ain following threads.
Re: Can Package calls be turned on or off?
Calgary or Dublin Releases block out many package calls

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2015 01:26 AM
Solution given in other thread
How to use/replace GlideStringUtil for scoped app?
It will be corrected in a future Fuji release.
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022