We’re rewarding the question askers & reputations are being recalculated! Read more.

New answers tagged


Correct, you cannot catch this error in a trigger. This error occurs before any triggers are executed. This is true for all standard validations, such as DUPLICATE_VALUE, REQUIRED_FIELD_MISSING, etc.


Simply add a return statement. catch (CalloutException e) { // handle error return; } If your method return type is PageReference rather than void, then change return to return null.

Top 50 recent answers are included