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
Edwin KEdwin K 

Upsert Attachment via data loader schedule



I want to ask about upload attachment using data loader with schedule. I have mapped Id, ParentId, Name, Body.. If using data loader program, the result is  a success but if using command line prompt or schedule with bat file, there is an error: Field mapping is invalid: Body => Body


Is it has different mapping ? Anyway my Body field in csv file contains full path of the file, example: D:\test.jpg

Any suggestions would be great.. thanks..

Edwin KEdwin K



I have fixed it, it is because I set it on the wrong object, I shoud change the object into Attachment.. Thanks..


Hi Edwin K,


May I know how  you did the upsert operation?


In my understanding, only the object who has external id can do upsert opertion. and you cannot add external id field on attachement. 


Thanks in advance.