You need to sign in to do that
Don't have an account?
System.LimitException: Too many future calls: 1 in batch classes
Hi All,
I have two batch classes and both classes call a future method in case of any exception occurs and other than that, both the batch classes don't call any future class.
But when I run a batch class I get this exception System.LimitException: Too many future calls: 1 but the other batch runs successfully without throwing any exception.
Log of batch class which causes an exception is :[ Number of future calls: 0 out of 0 ]
Log of batch class that executes successfully : [ Number of future calls: 0 out of 50 ]
Both batches calls same future method but one batch shows "Number of future calls: 0 out of 0" and causes exception but another batch runs successfully with "Number of future calls: 0 out of 50"..
Could anyone help me figure what the issue, actually is ...
Thanks in Advance!!
Recommend reviewing
https://salesforce.stackexchange.com/questions/57154/calling-future-method-from-batch-class
https://salesforce.stackexchange.com/questions/148096/getting-first-error-too-many-future-calls-1
Thanks