Salesforce Adaptor v9.0.0: Better Error Handling for Bulk Operations

We’ve just released v9.0.0 of the Salesforce adaptor with an important update to how bulk operations handle errors.

What’s Changed

Starting with v9.0.0, bulk operations now fail by default when errors occur. This gives you more control and visibility when processing large datasets.

Why This Matters

Previously, bulk operations would continue processing even when individual records failed. While this kept workflows running, it could mask data quality issues or integration problems that needed attention.

Now, when a bulk operation encounters an error, your workflow will fail—making it easier to catch and fix issues before they compound.

Migration Example

If you need to maintain the previous behavior where operations continue on error, simply add failOnError: false to your options:

Before (v8.x):

bulk1.upsert(
  'Account',
  [{ External_Id__c: 'EXT001', Name: 'Upserted Name' }],
  {
    extIdField: 'External_Id__c',
    pollInterval: 3000,
  }
);

Now (v9.x):

bulk1.upsert(
  'Account',
  [{ External_Id__c: 'EXT001', Name: 'Upserted Name' }],
  {
    extIdField: 'External_Id__c',
    pollInterval: 3000,
    failOnError: false,  // Add this to continue on error
  }
);

Questions?

This change helps ensure data integrity while giving you flexibility when you need it. We’d love to hear how this impacts your workflows!