Posted by mtbosworth on May 31, 2011 at 9:12pm
I have setup Outbound messages for Case, Comment, and Contact objects and their respective sf_notifications configs. Case and Comment objects are being received without problems. Contact object are being reject by Drupal.
Things I have ruled out:
User send as on the Salesforce side (Same user is used for Case and Comment)
Workflow logic (Every time a contact is created or updated when 1 = 1)
Endpoint URL (all endpoint urls are the same)
All field maps are enabled in Drupal to recieve notifications.
I am out of ideas on why these messages are rejected. Anyone dealt with this?
Categories: Salesforce
Comments
Also
This is an ssl protected site running on apache. I checked the SSL logs and for all messaging apache is giving a 200. Apache doesn't appear to be the issue.
Mike Bosworth
Balanced Scale Media, LLC
balancedscale.com
Access Logs
Turned on Salesforce logging and found the following:
SalesForce Notificaitions failed to update from record.
Array
(
[oid] =>
[name] => salesforce_api_default_user_contact_field_map
[drupal_type] =>
[fields] => stdClass Object
(
[Id] => xxxxxx
[AccountId] => xxxxxx
[Email] => xxxxxx
[FirstName] => xxx
[LastName] => xxxxx
)
)
They x's are real data and that all looks fine. I think the problem is that the drupal_type is empty so that salesforce module doesn't know where to update the info. The operation is insert when it seems like it should be update, but I dont' know the code well enough to say. Anyone else seen this? Is it because I'm using the default User->Contact map? Do I need to clone it and make my own?
Mike Bosworth
Balanced Scale Media, LLC
balancedscale.com
Problem
One problem I've found in barraging sf_notifications with dd()'s is that sf_user_import is expecting a $uid to update existing users. sf_notifications_update_record() is passing $oid which is empty. It doesn't find the existing one and the insert fails because the user exists.
Mike Bosworth
Balanced Scale Media, LLC
balancedscale.com
Thread
I stumbled upon this thread on the salesforce suite project page. http://drupal.org/node/1058870 Not sure if these patches have been commited to 6.x-2.x-dev, which is what I've using.
Mike Bosworth
Balanced Scale Media, LLC
balancedscale.com