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
Saikishore Reddy AengareddySaikishore Reddy Aengareddy 

Error:System.LimitException: DML currently not allowed

Hello All-

 

Can anyone suggest me to get rid of this error? What does this error mean?

 

"System.LimitException: DML currently not allowed"

 

Thanks

Best Answer chosen by Admin (Salesforce Developers) 
kiranmutturukiranmutturu

i think u r doing the dml operation in a constructor?  post the code...

All Answers

kiranmutturukiranmutturu

i think u r doing the dml operation in a constructor?  post the code...

This was selected as the best answer
shailesh_patil.ax1006shailesh_patil.ax1006

You might be inserting a list. Please make sure its of sObject type. Same in case if you are using Map and tryiong to insert.