You need to sign in to do that
Don't have an account?
peter.olivier1.3897275862899202E12
Apex Trigger issue: Edit/Save Phone number on Contact page
I'm using an Enterprise instance and am getting the following error ever time we try to edit or save a Phone number (Standard Field) on the Contact Object (Standard Object). The error is present even when entering valid us numbers (no dashes, letters, etc.)
Error:Apex trigger updateCustomObjects caused an unexpected exception, contact your administrator: updateCustomObjects: execution of AfterUpdate caused by: System.LimitException: Attempted to schedule too many concurrent batch jobs in this org (limit is 5).: Trigger.updateCustomObjects: line 73, column 1
Error:Apex trigger updateCustomObjects caused an unexpected exception, contact your administrator: updateCustomObjects: execution of AfterUpdate caused by: System.LimitException: Attempted to schedule too many concurrent batch jobs in this org (limit is 5).: Trigger.updateCustomObjects: line 73, column 1
Your massage says,You have UpdateCustomeobject trigger in contact object,and In trigger code line 73 trying to invoke more than 5 batch same time.
See this part in your code.
if(strContactIds != '') { String strQuery = 'SELECT ID, Contact__c FROM Meeting_Attendees__c WHERE Contact__c IN ' + strContactIds; System.debug(' $$$$$$$$$ strQuery == ' + strQuery ); clsBatchAttendeeUpdate bc = new clsBatchAttendeeUpdate(strQuery,updatedContacts); Database.executeBatch(bc, 200); }
That mean,
In your instance Now have more than 1000 Meeting attendees record,and It's firring batch 5 times concurrently.As salesforce limit ,You can't quied more that 5 active batch in salesforce.
You can see invoked batch in setup-Admin setup-Moniterning-Apex job
Please write secedulade batch apex,to resolve this issue ,Comment code i pasted above.
This below post will explain you how to resolve yours suitiation
https://help.salesforce.com/HTViewSolution?id=000182449&language=en_US
Thanks,