heroku/databasedotcom — Issue #43: Deleted Fields
Author: dgbrown
Created: 2011-12-15 19:21:01+00:00
State: open

Hello,

We're currently running into some problems related to the databasedotcom gem. We use the gem to provide website to salesforce integration on several of our key objects. When someone deletes a field from one of these objects on salesforce, our integration breaks down.

Databasedotcom's description of an object isn't changed when that object is changed in Salesforce. When we try to push an update from our website, it will fail because it is trying to update the deleted field ( which no longer exists ).

Our solution for now is to restart our web-servers, which results in the objects being re-materialized, and integration running as normal. This solution works for now, but we think that a better one is needed.

Perhaps a solution similar to the one provided for session timeouts could be implemented? Salesforce returns a very specific message when an update fails in this case. When we receive that message in our response from salesforce, would it be possible to get a fresh description of the object and make another attempt at the update?