Will the entire transaction be rolled back in case of Governor Limit exception if I have fired some partial saves done?

e.g. if the gov limit exception of 100 SOQL is hit while execution of contact trigger (initiated in line 3), will the accounts saved will also get rolled back?

SavePoint sp = Database.setSavepoint();
Database.update(accountList, false);

1 Answer 1


Yes. An uncaught exception will always roll back the entire transaction, and LimitException, which represents governor limit violations, cannot be caught or handled. It will roll back regardless of any save points or allOrNone options used to perform DML.

You must log in to answer this question.

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