Activity Forums Salesforce® Discussions What are few limitations of Savepoint or Transaction Control in Salesforce Apex?

  • shariq

    Member
    September 22, 2018 at 6:26 PM

    Each savepoint you set counts against the governor limit for DML statements.
    Static variables are not reverted during a rollback. If you try to run the trigger again, the static variables retain the values from the first run.
    Each rollback counts against the governor limit for DML statements. You will receive a Runtime error if you try to rollback the database additional times.
    The ID on an sObject inserted after setting a savepoint is not cleared after a rollback.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Pros & Cons of Lightning Component vs. 3rd party frameworks in Salesforce UI development

Video in

Nikita drops by to share his invaluable experience of using popular 3rd party frameworks in Salesforce. http://media.blubrry.com/salesforceway/audio.xmcdn.com/group42/M05/25/57/wKgJ81rXk6XjaZIAAU_I_KtprFM998.m4a