You need to sign in to do that
Don't have an account?

I have created a ExceptionLog object. When ever the new exception caught, i like to create a new record in my ExceptionLog Object. But it is showing a exception like Limit exception:DML Not allowed here. Can you please suggest how to resolve it?
I have created a ExceptionLog object. When ever the new exception caught, i like to create a new record in my ExceptionLog Object. But it is showing a exception like Limit exception:DML Not allowed here. Can you please suggest how to resolve it? Is it possible to create a new record from the catch block? Please suggest me way to achieve this issue.
Instead of writting a DML operation in Catch block, set a flag variable true in catch and check if the variable is true then execute the DML after completing the catch block.
Thanks
Sachin