function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

System.Exception: Too many DML rows: 484

I am trying to carry out a bulk operation in my trigger. But I am getting the following error:

Error: Invalid Data.
Review all error messages below to correct your data.
Apex trigger UpdateContract caused an unexpected exception, contact your administrator: UpdateContract: execution of AfterUpdate caused by: System.Exception: Too many DML rows: 484: Trigger.UpdateContract: line 25, column 5

The problem is due to large number of objects to be updated.

Any suggestions will be appreciated.
You are limited to 100 records processed as a result of DML statements:

These limits scale with trigger batch size. The limit is multiplied by the number of records submitted. For example, if your batch process contains 200 records, your script may retrieve as many as 20,000 records.

What is the business context for needing to process 100 records for a trigger batch size of 1?