Not able to Update state of HR case (sn_hr_core_case) through script getting error as "Source descriptor is empty while recording access for table sn_hr_core_case: no thrown error Security restricted: Read operation on table 'sn_hr_core_case' from sc

swapnaja jagada
Tera Contributor

When I am trying to update state of HR case from "Awaiting Approval" to "Ready" using script it is showing error as:

"Source descriptor is empty while recording access for table sn_hr_core_case: no thrown error
Security restricted: Read operation on table 'sn_hr_core_case' from scope 'Global' was denied because the source could not be found. Please contact the application admin.
Security restricted: Read operation on table 'sn_hr_core_case' from scope 'Global' was denied. The application 'Global' must declare a cross scope access privilege. Please contact the application admin to update their access requests."

Can you please help to resolve this issue.

 

 

7 REPLIES 7

michaelj_sherid
ServiceNow Employee
ServiceNow Employee

Hi @swapnaja jagadale This sounds like an Application Restricted Caller Access issue (RCA). It seems that the record is trying to get created from the operation but cannot get the source scope. I have seen this before where creating the RCA record manually addresses the issue. 

Regards,

Mike

Can you please help me with exact steps required to be followed in order to fix the issue.

Hello @swapnaja jagadale ,

I think you should not provide the Global scope to access the data from sn_hr_core scope. Because that is how it is implemented that the global scope should not be able to access the HR table's data and hence it is restricted. 

Could you please check once by changing the scope to sn_hr_core and then execute the script in sn_hr_core scope:

find_real_file.png

Please mark my respsone as helpful/correct, if it answer your question.

Thanks

 

@swapnaja jagadale Here is a link in our docs site to help with these details. This link has additional information on setting the application scope, application resource, and event access.

Regards,

Mike