- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 01:46 AM
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:
I have also checked the "sys_user_preference" table and it has the access of "Can Read" and "Can Write" from all application scope:
(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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 04:45 AM - edited 05-08-2024 04:46 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 02:07 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 02:19 AM
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".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 02:23 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 02:27 AM
I tried creating one, but I am getting the below error: