System.LimitException: Too many DML rows: 10001

System.LimitException: Too many DML rows: 10001 error occurs, when we try to do DML operations to more than 10000 records at a time.

If we want to do DML operations to more than 10000 records at a time, we have to call a batch class from the current class to handle it separately.

Cheers!!!

2 comments:

  1. Hi Sir,

    I have 3 objects that are Loan,Candidate,Position,the Loan object have Candidate and Postion lookup relationship now how to display these three objects data by using pageblocktable .

    please help me sir

    Thanks
    Ramesh

    ReplyDelete
    Replies
    1. Post your question in

      success.salesforce.com

      to get answer quickly.

      Thanks!

      Delete