Title: Code: 400 Error
Last modified: November 13, 2017

---

# Code: 400 Error

 *  Resolved [ratputin](https://wordpress.org/support/users/ratputin/)
 * (@ratputin)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/code-400-error-2/)
 * We moved from a SalesForce Sandbox to Production and started receiving this error
   in the logs. I assumed this was pointing to an issue with the object configuration
   on the Salesforce side and not with plugin, but wanted to check to be sure. The
   error is:
 * URL: [https://na76.salesforce.com/services/data/v40.0/sobjects/Contact](https://na76.salesforce.com/services/data/v40.0/sobjects/Contact)
   
   Message: Please select a Preferred Email Code: 400
 * TIA
    KO
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcode-400-error-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Jonathan Stegall](https://wordpress.org/support/users/jonathanstegall/)
 * (@jonathanstegall)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/code-400-error-2/#post-9678612)
 * [@ratputin](https://wordpress.org/support/users/ratputin/) Salesforce often does
   not provide the most helpful error messages. What I think is happening is that
   in production, the Contact object requires a Preferred Email. Maybe it supports
   multiple email addresses somehow, and to create a record one of the emails has
   to be chosen as the primary.
 * This is not a requirement that is built into Salesforce, but I can imagine that
   some places have to build something like that to support multiple email addresses
   for a single contact. It seems like maybe they could also select the only email
   address if there isn’t more than one. But in any case this is the kind of thing
   that, if the plugin needed to support it, could be done with developer hooks,
   but because it isn’t in the default Salesforce it is not something the plugin
   would support by default.
 * It could of course be something else, but in any case that is not an error message
   on a default Salesforce configuration.
 *  Thread Starter [ratputin](https://wordpress.org/support/users/ratputin/)
 * (@ratputin)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/code-400-error-2/#post-9678641)
 * Understood. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Code: 400 Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/object-sync-for-salesforce.svg)
 * [Object Sync for Salesforce](https://wordpress.org/plugins/object-sync-for-salesforce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/object-sync-for-salesforce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/object-sync-for-salesforce/)
 * [Active Topics](https://wordpress.org/support/plugin/object-sync-for-salesforce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/object-sync-for-salesforce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/object-sync-for-salesforce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ratputin](https://wordpress.org/support/users/ratputin/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/code-400-error-2/#post-9678641)
 * Status: resolved