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.

Comments

axlroach’s picture

StatusFileSize
new499 bytes

This is the sf_prematch.main.inc patch

axlroach’s picture

StatusFileSize
new624 bytes

This is the salesforce_api.module patch

axlroach’s picture

By 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/.

aaronbauman’s picture

Status: Needs review » Fixed

nice plug ;-]

Thanks for the good eye and the patch.
http://drupal.org/cvs?commit=446050

aaronbauman’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.