mshanemc / roundRobinProcessBuilder

27 stars 10 forks source link

Error Occurred: An Apex error occurred: System.SObjectException: Field OwnerId is not editable #22

Open Jonathan-Stringer opened 4 years ago

Jonathan-Stringer commented 4 years ago

I am trying to update the Task Owner from a queue to an individual if its still owned by the queue 2hrs after the Task creation. The OWD is Private for Activities is the reason why i get the OwnerID is not editable error? If so how would I work around the issue?

dmatthews35 commented 4 years ago

I'm trying to update the Case Owner from a queue to an individual if its still owned by the queue. All users in my group have full access to case records but I get an OwnerID is not editable error. Any assistance would be appreciated.

Error Occurred During Flow "case560_500_IP_CUCB_RR_case_assignment": An Apex error occurred: System.SObjec... Error element myRule_1_A1 (FlowActionCall). An Apex error occurred: System.SObjectException: Field OwnerId is not editable ROUNDROBINASSIGNER (APEX): myRule_1_A1 Inputs: groupName = Services recordId = {!SObject.OwnerId} (00G370000014QuKEAU) <- in PB logs, the proper Case ID is being processed but 00G370000054QuKEAU Group ID does not match the Group ID of the PB round-robin group name string, which is the Public Group Label... not the API name.

JonBissell89 commented 4 years ago

Role hierarchy needs to be set in such a way inorder for you to the owner when you are not the owner of the record.

On Wed, Aug 26, 2020, 7:39 PM dmatthews35 notifications@github.com wrote:

I'm trying to update the Case Owner from a queue to an individual if its still owned by the queue. All users in my group have full access to case records but I get an OwnerID is not editable error. Any assistance would be appreciated.

Error Occurred During Flow "case560_500_IP_CUCB_RR_case_assignment": An Apex error occurred: System.SObjec... Error element myRule_1_A1 (FlowActionCall). An Apex error occurred: System.SObjectException: Field OwnerId is not editable ROUNDROBINASSIGNER (APEX): myRule_1_A1 Inputs: groupName = Services recordId = {!SObject.OwnerId} (00G370000014QuKEAU) <- in PB logs, the proper Case ID is being processed but 00G370000054QuKEAU Group ID does not match the Group ID of the PB round-robin group name string, which is the Public Group Label... not the API name.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mshanemc/roundRobinProcessBuilder/issues/22#issuecomment-681178393, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANJL5LRT53NKNEQZ7OPVFRDSCWMKXANCNFSM4M7732VA .