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

System.AsyncException: Failed to enqueue future method
I'm trying to execute the simplest of codes in a future method, but when I call the method, it fails with the following exception:
System.AsyncException: Failed to enqueue future method
Here's my code:
global class OpptyEmailNotificationUtil {
@future public static void sendEmails1() {
System.debug('test');
}
}
I actually want to do a lot of other stuff in the future method, but am unable to even get this simple code to work. Can anyone help?
Thanks.
Check if you have an option
Setup > Administration Setup > Monitoring > Apex Jobs.
If not, you need to contact the customer support to get @future activated.
All Answers
Is there a particular configuration that I need to do to the org settings? Does the user need a special permission to execute a future method? I'm trying via a user with System Admin profile.
Thanks.
Check if you have an option
Setup > Administration Setup > Monitoring > Apex Jobs.
If not, you need to contact the customer support to get @future activated.