The invoked workflow file uses the UiPath.Salesforce.Activities package (1.9.3 currently but the same issue was returned in v1.8.0) to create a link using the ‘Insert Record’ as well as the ‘Update Record’ activity to upload attachments.
Any idea what the fatal error may be related to? I’ve checked and all values being passed and retrieved are basic string values. Please see the below screenshot for the exact error messages being returned.
What happens if you take that activity, put it in its own workflow and only put hard coded variables in it, no variables?
Can it run and insert the record?
The above logic is used across 2 processes, with the logic corrupting this solution but not the other. I’ve noticed that only one process uploads an attachment through the API, converting the file into Base64 to be accepted by the Salesforce Connector Activity.
I’ll be reviewing other options to attaching a file to meet the asks of the client.
I’ve come back to say that the above issue has been resolved.
The original xaml made 3 API calls to our custom Salesforce server. The fix was to split the API calls into their own xamls.
I believe the primary issue may have been that some insert/update record activities weren’t contained within their own Salesforce Application Scope activity.
Thank you for helping me discover the fault @Jon_Smith!