function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SambitNayakSambitNayak 

Validation error while saving record

Hi,
I have a custom object and 2 users from same profile are seeing different behaviours. Although the CRED access on the profile is CRE, the 1st user is able to edit it while the 2nd one cant.
There are no validation rules or Triggers on the object. No Permission set is assigned to both users.
The 2nd user sees the following validation error. I am unable to create debug logs as the profile doesn't have access to 'SetUp' (when I create a Permission Set to grant access to 'SetUp', it opens up the visiblity to all data and hence the user doesnt face the issue anymore). Please help me if you have encountered similar issues.
User-added image
Best Answer chosen by SambitNayak
SambitNayakSambitNayak
I figured it out. It was straight under my eyes and I missed the basics. The OWD is 'Public RO'-- Changed it to "Public RW"

All Answers

PriyaPriya (Salesforce Developers) 
Hey Sambit,

Does your org has any sharing rule? Issue can be due to that also. 
Kindly check the below link :- 
https://help.salesforce.com/s/articleView?id=sf.admin_insufficient_privileges_record.htm&type=5

Thanks
SambitNayakSambitNayak
I figured it out. It was straight under my eyes and I missed the basics. The OWD is 'Public RO'-- Changed it to "Public RW"
This was selected as the best answer