cslist.clear(); - Changes here , so that the data is inserted every time the batch is processed and we dont hit the DML limit exception } global void finish(Database.BatchableContext BC) { //System.debug(csList);
//if (! csList.isEmpty()) insert csList; -Moved this to the execute batch method to resolve the DML system limit exception error
}After fixing this , the code ran successfully in Full sandbox but when I deploy I see this error.
4 respuestas