Error: entity is deleted

You may face the “entity is deleted“ sync error sometimes. That happens because some related Salesforce object doesn’t exist on the Salesforce side anymore, but our module trying to use it’s SalesforceId.

 Exampe:

  1. You have some synced Magento custome, i.e. it has related Contact and Account on the Salesforce side

  2. For some reason you delete Contact/Accout or merge them to another records

  3. I.e. after that our module has depricated AccountId/ContactId

  4. This customer place an order

  5. This order sync will fails with the “entity is deleted“ error message as module tried use deprecated AccountId/ContactId to create order on the Salesforce side.

 

Solution:

To fix this issue follow instruction:

  1. Go to the Order page in Magento Admin area

  2. Click the “Force Salesforce sync“ link

  3. Deprecated SalesforceIds will be removed and it will trigger customer sync also. As result module will get a new SalesforceIds and Order sync would be complete successfully.