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
Lukas van RooyenLukas van Rooyen 

Error Occurred: Too many DML rows: 10001

Error Occurred: Too many DML rows: 10001
Getting this error when trying to insert data via a flow.
VinayVinay (Salesforce Developers) 
Hi Lukas,

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.

https://trailblazers.salesforce.com/answers?id=9063A000000tJjRQAU
https://salesforce.stackexchange.com/questions/101904/too-many-dml-rows10001/101906#:~:text=%22Too%20many%20dml%20rows%3A%2010001,10000%20records%20from%20DML%20statements.&text=For%20instance%2C%20imagine%20you're,do%2C%20you%20hit%20the%20limit.

Thanks,