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
PXForcePXForce 

Mass Insert

While doing a mass insert using a batch process. If I get an error on a record , would it not insert the other records.

 

For example:

 

If I have to insert a list of Leads and a couple of leads in the list throw some errors , would it stop the operation for the whole list or just those records.

 

Anand@SAASAnand@SAAS

It depends on the type error. If there are validation rule errors all records might not fail but if there are DML Exceptions / Run time errors all records will fail.