- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2020 12:25 AM
Hi,
Plase tell me.
I tried to update valiables the hr case table from the portal widget and I get an error.(by system log)
How can I get rid of this error?
Error Below:
Root cause of JavaScriptException:
com.glide.script.fencing.access.ScopeAccessNotGrantedException
Read access to sn_hr_le_case not granted: com.glide.script.fencing.ScopedGlideRecord.checkOperationPermitted(ScopedGlideRecord.java:238)
Thnaks in advance,
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2020 02:08 AM
As per the error gliderecord query on sn_hr_le_case is not allowed:
Read access to sn_hr_le_case not granted: com.glide.script.fencing.ScopedGlideRecord.checkOperationPermitted(ScopedGlideRecord.java:238)
Can you create configuration on sys_restricted_caller_access table as attached below:
Change the widget name.
If you are using HR Service portal, give source scope as: Human Resources: Service Portal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2020 12:32 AM
This issue is due to Improper scope access to table:sn_hr_lr_case.
Check this out:
https://community.servicenow.com/community?id=community_blog&sys_id=44ad22a9dbd0dbc01dcaf3231f961921
Same error explained in this blog:
https://servicenowben.wordpress.com/2018/09/27/cross-scope-privileges/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2020 01:56 AM
Hi,
The solution could not be read from the same error.
Specifically, how can I create a record?
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2020 01:59 AM
Hi Mi,
Does that user have read access to that HR Case table? Also from which scope you are trying to perform this?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2020 02:16 AM
Hi,
Thank you for your comment.
Since the executor is an approver, it don't have it.
The detail I want to execute is to transfer the information entered by the approver from the approver widget to the 'hr case'.
Therefore, the scope of the widget is service portal, and in the widget, when the approver presses approve, the comment is written to the hr case as "update ();".
Regards,