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
dennis neuland 9dennis neuland 9 

ENTITY_IS_LOCKED

Hi all.

I tried to update an order using REST API. I received an Execution
{u'errorCode': u'ENTITY_IS_LOCKED', u'fields': [], u'message': u'entity is locked'}

Why are the Orders locked?
I don't have approval process in my salesfoce system.

Thanks in advance.

 
UC InnovationUC Innovation
This can happen if multiple users are trying to update the same record at the same time.
Eric KintzerEric Kintzer
The reason for this is your running user does not have App Permissions 'Edit Activated Orders'. USe a Permission Set or change the Profile to include this permission.