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

problem in inserting in a batch when trigger called
Hi,
I am able to add records in salesforce object one by one when the trigger is enabled.
But I am not able to add records in salesforce object in batch when the trigger is enabled.
So is it possible to work with both or there is other workaround?
Thanks,
Manjiri
I am able to add records in salesforce object one by one when the trigger is enabled.
But I am not able to add records in salesforce object in batch when the trigger is enabled.
So is it possible to work with both or there is other workaround?
Thanks,
Manjiri
Triggers have very tight governing limits, and it seems like your trigger is exceeding those limits. Can you send in the error message that you get, so that we know if that is the case?
If that is the case, then I think that you have some SOQL or DML being executed in the for loop. Try using queries and DML in batches instead of doing them inside the loop - putting them in the loop will mostly make the batch trigger fail. I hope this helps.
Thanks.