I have to export around 25k attachments from salesforce, change parentId and upload back to salesforce. Can this be done using data loader?. I exported data and it gives attachment body as binary encoded text. I am not able to upload it back. When I am uploading back, it is showing error that body field exceeded max field size.
When I checked in salesforce documentation, it is telling to export attachments using Data export under setup(which will give attachment in separate folders as zip) in salesforce and then upload back specifying attachment folder link in body field.
NOTE :- I have written apex code to clone and reparent attachments through a batch. This dataloader approach is a backup mechanism to revert attachments, if code failed.
Is there a way to directly upload attachments exported through data loader back to salesforce?.