Files didn't upload to Salesforce from a project automation
Updated
Applies to: Super Admins, Creators and Integrators who have permission to update the project's settings, for example through the Project Editor access role, with Salesforce connected. Without that permission, you can view the Automations tab but can't create, save or delete automations.
Files from a task didn't reach the Salesforce record. We'll check the automation's trigger first, and then its row in Logs.
Why it happens
Upload Files to Salesforce Object uploads files only when its automation's trigger is Task completed. With any other trigger, it uploads nothing, even if Logs shows a check mark for it. That includes Any task completed and Subtask completed.
With a Task completed trigger, it sends the files uploaded on that task through a File Upload subtask or a form's Request Files field. Files shared through Share Files, and links, aren't sent. The files go to the record selected in Salesforce Object Entity.
The upload runs in the background after the task is completed. Its row appears in Logs only after the upload has run.
Fix it
To start, select the automation on the project's Automations tab. Its first step is the trigger.
If the trigger isn't Task completed
Select Create.
For the trigger, select Task completed.
In Task, select the task that has the files.
In the new Action step, select Upload Files to Salesforce Object.
In Salesforce Object Entity, select the record.
Select Create.
Optional: In the old automation, remove the upload step with its trash button, and then select Save. If that was its only action, select Delete Rule and then Confirm instead.
If the trigger is Task completed
Select Logs.
Select Refresh. The row can take a moment to appear.
Find the
uploadFilesToSalesforceObjectrow. On this row, User is the person who completed the task, or OnRamp's system user when that isn't known. If there's no row, follow Project automation didn't run or failed.If Success shows a check mark, check that the files were uploaded through a File Upload subtask or a form's Request Files field on the trigger's task.
If Success shows a failure, select View in the Error column. It shows the error message and each file that failed, with Salesforce's status and message.
Match the message to its fix in the table in this section.
Message | What to do |
|---|---|
| The trigger's task is archived. Create the automation again on a task that isn't archived. |
| The Salesforce record is missing or archived. Select another record in Salesforce Object Entity, and then select Save. |
| No record is selected. Select Workflow, select the Upload Files to Salesforce Object step, select a record in Salesforce Object Entity, and then select Save. |
| The failure happened on OnRamp's side. Contact support with the details in Still stuck? |
A file listed with Salesforce's status and message | Salesforce rejected that file. Its message says why. |
If Salesforce Object Entity shows Selected integration entity not found. Please select one below., select the record, and then select Save.
One run can upload some files and fail others. A row shows a failure even when some files reached Salesforce. Files the run had no time for show Not attempted: the run ran out of time before this file. To see which files did upload, select View in the Payload column. It lists each file's result, with Salesforce IDs for the files that uploaded.
Warning: Completing the task again runs the upload again. Files that already reached Salesforce can be uploaded a second time. Check the Payload view first.
After you fix the cause, you can clear the project's automation error count. Project automation didn't run or failed explains how.
Still stuck?
Contact support with the project's name and link, the task's name, the Salesforce record you expected, the names of the missing files, the row's Timestamp, and the message from the Error column's View.