Unexpeced Error In Salesforce Connector: Index was out of range.

Unexpeced Error In Salesforce Connector: Index was out of range.

book

Article ID: KB0078042

calendar_today

Updated On:

Products Versions
TIBCO Cloud Integration - Connect ( Scribe ) -

Description

When using the Salesforce Connector in Tibco-Scribe Online as a target with a Cloud Agent, the following error was generated:

An unexpected error occurred. The following error has occurred in the Salesforce Connector: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

A Tibco-Scribe Online Organization using Salesforce as a target contained a Map to perform an update. The Map Blocks had direct mapping of the fields and no formulas were applied. Everything appeared to be correct. However, during debug or when running the Map, the Execution History displayed the error shown above.

Additional Notes:
  • The Map design appears to be correct.
  • Hard-coded values for the fields in the Update Block worked.
  • The Map worked until changes were made.
 

Resolution

  1. Create a new Solution.
  2. Export the Map from the Solution generating the error.
  3. Import the Map into the new Solution.
This forces the metadata to reset and the Map to recompile.

 

Issue/Introduction

An unexpected error occurred. The following error has occurred in the Salesforce Connector: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index