I was having an issue when attempting to export a user profile node (mapped to a contact object). Everything worked great the first time (creation of the contact object), but I kept getting the error response "Contact already exists" any time an update was required after the initial contact creation. I traced through the code and found a couple of typos. Patches attached.
// sf_prematch.main.inc: line 19
$map['drupal'] SHOULD BE $map->drupal as $map is a stdClass Object
// salesforce_api.module:line 991:
$fieldmap_naem SHOULD BE $fieldmap_name The misspelling is preventing the fieldmap from being returned properly and therefore keeping the prematch from happening as it should
I hope this helps someone else and saves them the aggravation of tracking this down.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | salesforce_api.module-typo-960468-2.patch | 624 bytes | axlroach |
| #1 | sf_prematch.main_.inc-typo-960468-1.patch | 499 bytes | axlroach |
Comments
Comment #1
axlroach commentedThis is the sf_prematch.main.inc patch
Comment #2
axlroach commentedThis is the salesforce_api.module patch
Comment #3
axlroach commentedBy the way, the time spent finding these errors and fixing them was generously sponsored by the fine folks at Bay Area Video Coalition -- an organization that provides training and access to emerging media technologies for public media producers, independent artists, at-risk youth and other non-profit organizations: http://www.bavc.org/.
Comment #4
aaronbaumannice plug ;-]
Thanks for the good eye and the patch.
http://drupal.org/cvs?commit=446050
Comment #5
aaronbauman*patches
http://drupal.org/cvs?commit=446052