eShopSync

Error FIELD_INTEGRITY_EXCEPTION: field integrity exception: AccountId, ContractId (Make sure the order’s account and the contract’s account are the same.)

Possible reason: While changing Sync settings from “ Sync all contacts to Single Account” to “Sync All Contact to Individual Account”.

 Once you change the sync type and saved it. This issue will only impact Registered users stored in WooCommerce account. Then, follow the steps to resolve the error.

1. Sync Users first once you update Syncing type as desired.

2. Only Delete ” WooCommerce ” account from Salesforce that was previously mentioned to sync all contacts in a Single account. Deleting WooCommerce account will automatically delete Orders and related contracts. There is no need to make any changes to Guest User Account as it will remain with the same functionality.

Once you delete the ” WooCommerce” account, automatically all the Orders and Contracts linked to this account will get removed. Then, Sync Orders, it will sync all the orders in the corresponding account normally. This will fix the issue completely.

Exit mobile version