I want to insert 13k PDF attachments in Salesforce. Each of the PDF is 192 kb. I have created a csv file with the name of the pdf and it's relative path on the local drive.

enter image description here

I tested inserting 15 attachments successfully. However, if I upload a csv with all 13 k records, I am afraid I may run into a Maximum Size of Request Reached error

Apart from splitting the 13k into small files, which is a mammoth task, is there a better way to upload the 13 k attachments. ?

1 Answer 1


That error is all about the size of the batch or request that you do. You're not pushing all 13k all at once you're pushing chunks based on the data loader's batch size setting.

If 15 went through that's good, you could set you batch to that but maybe try 100 or 200? 13k will take a while 15 records at a time. But it'll work for you.

  • 1
    documentation suggests that the limit per batch is 10MB (150MB for Bulk API 2.0). That'd put the limit at somewhere around 50 (v1) or 750 (v2).
    – Derek F
    Mar 30, 2021 at 21:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .