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
Jyotirmoy BJyotirmoy B 

I have a process bulder, validation rule and approval process.

I have a process bulder, validation rule and approval process. Approval process is updating a field called 'approver status ' to 'Pending for Approval'after submitting the record for approval and 
created a validation rule to restrict the submitter to edit the record. But backend it's working fine but validation is not popping up rather error is popoing up as "process is not working" . submitter has modify all access at permission set level.

Validation Rule - 
AND(NNAE_Record_Loacked__c= true,
OR( ISPICKVAL(PRIORVALUE(OCE__ApproverStatus__c), 'Pending Approval'), ISPICKVAL(PRIORVALUE(OCE__ApproverStatus__c), 'Approved') ),
NOT(OR(
$Profile.Name <> 'System Administrator',
$Profile.Name <> 'OCE Admin'))
)

"NNAE_Record_Loacked__c" is the field that is updating through Process Builder 
Jyotirmoy BJyotirmoy B
It's not sending the record for approval to the manager