You need to sign in to do that
Don't have an account?
pk1772
@future method not getting called from catch block
I am calling a webservice (synchronous) and in case of CalloutException, I'm trying to create an error log in a custom object. The problem is, the record insertion is happening in a future method and after an exception has encountered, the method is not getting called. In case, I remove the @future annotation, the record does not get committed to the database. Has anyone faced similar issue and is there any workaround?
Hi pk,
Can you expose your code so that where is the exact cause of your failure?
Thank You.