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
Vikas Tiwari 40Vikas Tiwari 40 

I am not able to insert 50000 records using batch apex.

Code is correct but insertion failed.
Best Answer chosen by Vikas Tiwari 40
Malika Pathak 9Malika Pathak 9
Hi Vikas,

There are some storage limitations in Dev Org so you must check your org storage limits under Setup -> Data -> Storage Usage.
Due to these limitations, the insertion of records might fail.

Please mark it as the best answer if it helps you to fix the issue.

Thank you!

Regards,
Malika Pathak