Transaction control

Enforce the use of transaction control (savepoints and rollbacks) when multiple database operations are performed within the same block.

Lorenzo Frattini avatar
Written by Lorenzo Frattini
Updated over a week ago

Rationale

All attempts to  modify the database should make sure that, in case of error, no inconsistencies are never left in the database.  

Scope

  • Apex classes and triggers

Exclusions

  • This rule will not fire on test methods

See also

Did this answer your question?