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
- Create a new Solution.
- Export the Map from the Solution generating the error.
- Import the Map into the new Solution.
This forces the metadata to reset and the Map to recompile.