Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
bgColor#fff
  1. Check the field security settings in Salesforce. A field should be visible for the API user used for synchronization. See example below:
    1. Navigate to "Setup" > "App Setup" > "Customize" > "Order" > "Fields"
    2. Click on "Bill To Contact" link (NOT the "Edit" next to it, but the actual name)
    3. Click on "Set Field Level Security"
    4. Make sure the field is "visible" to API user and make sure the field is NOT "read only"
  2. Re-generate WSDL file in Salesforce and upload it to Magento server:
    1. Navigate to "Setup" > "App Setup" > "Develop" > "API"
    2. Click on "Generate Enterprise WSDL"
    3. Click on "Generate" button
    4. Right-click on the page and choose "Save As ..." and save the file to your local drive
    5. Upload to your Magento environment and clear "Salesforce Cache" in Magento
      1. In Magento, navigate to "System" > "Cache Management"
      2. Check "Salesforce" row, choose "Refresh" Action and click "Submit"

Filter by label (Content by label)
showLabelsfalse
max5
spacesPOW
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("faq","duplicate") and type = "page" and space = "POW"
labelsmapping faq

Page Properties
hiddentrue
Related issues