- 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:31 AM
Try checking below link:
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:58 AM
I tried doing the same. I am still getting the same error when I try to create the RCA Record
- 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.