Illegal access to private script include JSONParser in scope rhino.global being called from scope x_xxx_app in scoped app

hitman1512
Kilo Contributor

I have added following code in my business rule script.

var parser = new global.JSONParser();

And getting this issue

Error MessageIllegal access to private script include JSONParser in scope rhino.global being called from scope x_184790_vrealize

I also tried

var parser = new rhino.global.JSONParser();

But it seems that there is a permission issue of cross-app access.

Anyone knows how to solve this issue?

1 ACCEPTED SOLUTION

Deepak Ingale1
Mega Sage

Just forgot to mention, you can try for global.JSON.parse() and global.JSON.stringify()   before making any changes


View solution in original post

3 REPLIES 3

Deepak Ingale1
Mega Sage

Two options



1) JSONParser script include you have to either make as accessible from all scopes, but it will be modification to OOB


2) You can just create a script include similar to JSONParse in your scope and try to check if it works.


Deepak Ingale1
Mega Sage

Just forgot to mention, you can try for global.JSON.parse() and global.JSON.stringify()   before making any changes


JSON.parse() worked for me. Thanks deepak.ingale .