Transaction Finalizers Error Messages

Troubleshoot both semantic and run-time issues by analyzing these error messages.

This table provides information about error messages in your Apex debug log.

Error MessageFailed ContextReason for Failure
More than one Finalizer cannot be attached to same Async Apex JobQueueable ExecutionSystem.attachFinalizer() is invoked more than once in the same Queueable instance.
Class {0} must implement the Finalizer interfaceQueueable ExecutionThe instantiated class parameter to System.attachFinalizer() doesn’t implement the System.Finalizer interface.
System.attachFinalizer(Finalizer) is not allowed in this contextNon-Queueable ExecutionSystem.attachFinalizer() is invoked in an Apex context that’s not executing a Queueable instance.
Invalid number of parametersQueueable ExecutionInvalid number of parameters to System.attachFinalizer()
Argument cannot be nullQueueable ExecutionSystem.attachFinalizer() is invoked with a null parameter.

If you have a Splunk Add-On for Salesforce, you can analyze error messages in your Splunk log. This table provides information about error messages in the Splunk log.

Error MessageReason for Failure
Error processing finalizer for queueable job id: {0}Runtime error while executing Finalizer. This error can be an unhandled catchable exception or uncatchable exception (such as a LimitException), or, less commonly, an internal system error.
Error processing the finalizer (class name: {0}) for the queueable job id: {1} (queueable class id: {2})Runtime error while executing Finalizer. This error can be an unhandled catchable exception or uncatchable exception (such as a LimitException), or, less commonly, an internal system error.