Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Insert Content Version Error: Error: Unable to read file C:\JAM SLX Test Doc 4.txt

When attempting to insert ContentVersion data I receive the following error: Error: Unable to read file C:\JAM SLX Test Doc 4.txt

The file path is valid and is provided for both the PathOnClient and VersionData fields.

The VersionData field is defined as nvarchar(500). If the field is changed to varbinary(max) then the insert "works" but the contents of the File in SFDC is "C:\JAM SLX Test Doc 4.txt" (the value of VersionData) and not the actual contents of the file.

ID: NULL
Error: Unable to read file C:\JAM SLX Test Doc 4.txt .
Description: JAM SLX Test Doc 4.txt
Origin: H
PathOnClient: C:\JAM SLX Test Doc 4.txt
SharingOption: A
Title: JAM SLX Test Doc 4.txt
VersionData: C:\JAM SLX Test Doc 4.txt
1 person has
this question
+1
Reply