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:
You have some synced Magento custome, i.e. it has related Contact and Account on the Salesforce side
For some reason you delete Contact/Accout or merge them to another records
I.e. after that our module has depricated AccountId/ContactId
This customer place an order
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:
Go to the Order page in Magento Admin area
Click the “Force Salesforce sync“ link
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.