function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Suraj GharatSuraj Gharat 

Content cannot be inserted as a child of account record

Greetings,

I want to upload a file using Data Loader as Salesforce Content (I'm inserting ContentVersion object). I also want the uploaded file should be displyed in "Notes & Attachments" related list of one particular account. Hence I use the field "FirstPublishLocationId" of the "ContentVersion" and set it to the account id to which I want it to be linked. But as I try to do it, it gives me following error:

Content cannot be inserted as a child of record 0019000000PjQVk

Can be anybody help me here ?
ShashankShashank (Salesforce Developers) 
You may have to check the content permissions and account object access for the user.