Showing results for 
Search instead for 
Did you mean: 

Upload new Version to SalesForce ContentVersion

New Contributor

I am trying to upload a new version of a file into SalesForce Content version. I read through SF documentation and it says all you need is:

1. ContentDocumentId
2. ReasonForChange
3. PathOnClient (path of the file on the client machine)
4. VersionData(path of the file on the client machine)

However, no matter what I try I can't get a new version of the file to upload. I can upload a document, but anytime I try to update it I get an error in SalesForce Bulk Data Load Jobs along the lines of:

<message>You cannot update a version that is not the latest version of a document. Please use the latest version of document Joe Test 2324 Cost Worksheet.pdf.</message>
<message>You can't set the VersionData when IsMajorVersion is true.</message>

I am not setting the IsMajorVersion to true, but I am assuming it doesn't like that the previous version is. Here is what my pipeline looks like: 


And here is the final snapper after I looked up the Record Id: