---
schema_version: "1"
id: 060c4f3b130d740ab91bc267df4296209ad017e8e9b11d9d3e0750dd8a7a4fa5
title: Transaction Finalizers Error Messages
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexcode/apex_transaction_finalizers_error_messages.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_transaction_finalizers_error_messages.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: a847b8ebb86d97d9eb72d82b55fd0ee029adfa82f6bca5d4edc9cac84de8dc86
description: Troubleshoot both semantic and run-time issues by analyzing these error messages.
---
# 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.

Table 1. Troubleshooting Errors in Apex Debug Log
| Error Message | Failed Context | Reason for Failure |
| --- | --- | --- |
| More than one Finalizer cannot be attached to same Async Apex Job | Queueable Execution | System.attachFinalizer() is invoked more than once in the same Queueable instance. |
| Class {0} must implement the Finalizer interface | Queueable Execution | The instantiated class parameter to System.attachFinalizer() doesn’t implement the System.Finalizer interface. |
| System.attachFinalizer(Finalizer) is not allowed in this context | Non-Queueable Execution | System.attachFinalizer() is invoked in an Apex context that's not executing a Queueable instance. |
| Invalid number of parameters | Queueable Execution | Invalid number of parameters to System.attachFinalizer() |
| Argument cannot be null | Queueable Execution | System.attachFinalizer() is invoked with a null parameter. |

If you have a [Splunk Add-On](https://splunkbase.splunk.com/) for Salesforce, you can analyze error messages in your Splunk log. This table provides information about error messages in the Splunk log.

Table 2. Troubleshooting Errors in Splunk Log
| Error Message | Reason 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. |