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
gvgv 

@future method errors

Hi,

 

I have a method which is marked as future which is being called from 2 triggers. But when executed in production I get the following error:

 

Failed to invoke future method 

 

caused by: System.AsyncException: Future method cannot be called from a future method:

 

 

Is this a case of recursion? I am not sure what the exact error is and how would I go about fixing this

 

Thanks

Gita 

 

MakMak
It means you are trying to call a future method from another future method which isn't allowed.
visulaforcevisulaforce
It seems when first trigger is calling future method and execution of future method calling trigger that again calling the same future method.