Illegal Access to Private Script Include

jakeelliot
Kilo Contributor

I created a transform map in the CMDB integration application inside an update set. The transform map contains 2 script includes that are private to the CMDB application. All my changes were done in the application. However, the transform fails with an error of "Illegal Access to private script include. Getting called from Global scope." I didn't make any changes in the global scope though.....am I missing something here?  

4 REPLIES 4

Prateek kumar
Mega Sage

Take a look at this.

https://community.servicenow.com/community?id=community_question&sys_id=a22a8f69db5cdbc01dcaf3231f96193d


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

Thanks for the reply. I actually tried that but every time I save the script include, it defaults back to "This application scope only."

Weird, but over the community that is the only solution everyone proposed. 

Its worth waiting for some insights from other experts.


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

There are 2 ways to update / set the Script Include Accessible From field. 

1. At the time of create or 1st time Save Action of your Script Include, set the Accessible From = "All Application Scopes". Once saved this field is readonly. You cannot update. 

2. Let say you have already saved but now want to change, then follow the below steps - 

2.1 Download your Script Include as XML.

RichaAgarwal_0-1707492103689.png

 

2.2 Open the xml in some Notepad and Update the <access> node to <access>public</access>. See print screen.   

RichaAgarwal_1-1707492242860.png

2.3 Save this and import this XML back from Script Include list.

RichaAgarwal_2-1707492387768.png

 

This action will update the Accessible From  = All Application Scope.

 

Please mark my response as correct and helpful if it helped solved your question.

Thanks.