Problem
I am getting the following error in Magento when trying to synchronize a cusotmer
Those errors are due to duplicate Contacts in Salesforce. Those Contacts share the same email address and Powersync does not know which one to tie Magento customer to. It’s actually trying to tie a customer to a duplicate and it's complaining about duplicate Magento ID field. To resolve this error, merge those Contacts in Salesforce and re-sync those records.
What does this mean?
This means that Salesforce already has a record which uses the same Magento ID you are trying the syncronize, however the customer information in
Solution
Panel |
---|
|
- Check the field security settings in Salesforce. A field should be visible for the API user used for synchronization. See example below:
- Navigate to "Setup" > "App Setup" > "Customize" > "Order" > "Fields"
- Click on "Bill To Contact" link (NOT the "Edit" next to it, but the actual name)
- Click on "Set Field Level Security"
- Make sure the field is "visible" to API user and make sure the field is NOT "read only"
- Re-generate WSDL file in Salesforce and upload it to Magento server:
- Navigate to "Setup" > "App Setup" > "Develop" > "API"
- Click on "Generate Enterprise WSDL"
- Click on "Generate" button
- Right-click on the page and choose "Save As ..." and save the file to your local drive
- Upload to your Magento environment and clear "Salesforce Cache" in Magento
- In Magento, navigate to "System" > "Cache Management"
- Check "Salesforce" row, choose "Refresh" Action and click "Submit"
|
Related articles
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | POW |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label in ("faq","duplicate") and type = "page" and space = "POW" |
---|
labels | mapping faq |
---|
|