Getting Error with Cross Scope Table Access

Aniket Bhanse
Tera Guru

Hi all,

 

I have an HR Service (Human Resource: Core Application) and I have an OnLoad Client which should be inserting some details in the "sys_user_preference" table (global scope) whenever the user loads(opens) the HR Service. 

However I am getting the Cross Scope Error which says "Error: Write operation against 'sys_user_preference' from scope 'sn_hr_core' has been refused due to the table's cross-scope access policy

 

I have checked the Cross Scope and have already created two Cross Scopes as below:

AniketBhanse_0-1715071359974.png

 

I have also checked the "sys_user_preference" table and it has the access of "Can Read" and "Can Write" from all application scope:

AniketBhanse_1-1715071545808.png

 

 

(Note: This is the issue for all Users except Admins)

 

What could be the issue in such case and how do we fix this?

 

Thank you

 

1 ACCEPTED SOLUTION

Aniket Bhanse
Tera Guru

I figured it out!

In the User Preference table, the checkbox "Can Create" was enabled however "Can Update" was disabled due to which the sys_user_preference record was not getting updated. I even tried updating the record using script include (as I had my code in the script include) however it was still not updating. 

 

And when I enabled "Can Update", I was not getting the error and also the record was successfully updating in the User Preference record.

 

View solution in original post

7 REPLIES 7

Vishwa Pandya19
Mega Sage

Hello,

 

Can you check sys_restricted_caller_access table?

There should be a entry there as well with allowed status.

 

If my answer has helped you in any way please mark it as correct or helful.

I checked the Restricted Caller Access table but I did not find any record which has the Source scope as "Human Resource: Core" and Target Scope as "Global"
I have also checked all the RCA records which has the source as "Human Resource: Core" however all are already "Allowed".

Try creating a record in the RCA table. 

I had a similar issue a while back and it was resolved by creating an RCA record.

 

If my answer has helped you in any way please mark it as correct or helpful.

I tried creating one, but I am getting the below error:

AniketBhanse_0-1715074016955.png