Release: 25.2
You can now remove invoices from AP Automation asynchronously in the background, ensuring they are successfully removed from the external system, for example ERP, before being deleted from AP Automation. If the removal from the external system fails, the invoice is not removed from AP Automation either. Previously, the remove action immediately set the invoice to "Removed" status, even if the removal from the external system failed. This could lead to discrepancies between Basware and the external system.
Using asynchronous removal is optional. A consultant can activate it for the tenant and selected organizations through the anyERP entry point.
When asynchronous removal is activated, the remove action initiates the external system removal process, and the invoice status changes to "Removal from external system in progress". The invoice is removed from AP Automation only after a successful response is received from the external system. While waiting for the external system response, the invoice status appears as "Pending removal" in the Notice column on the invoice list. The invoice details display a banner to refresh the invoice and another to cancel the removal in AP Automation.
If the removal fails, the invoice status remains unchanged, but the removal status is changed to "Removal from external system failed". An error notification is displayed on the invoice to inform the user about failed removal attempt.
Invoices that failed to be removed can be easily found using the status graph, by clicking Removal failed in the Exceptions section. They can also be found using the Advanced search, where all removal statuses are available as additional search criteria.
If the user tries removing the invoice again after failed removal, the removal dialog offers two options:
- Remove from AP automation only - this removes the invoice from AP Automation even if it cannot be removed from the external system.
- Remove from both AP Automation and external system - this attempts to remove the invoice again from both systems, in case the first attempt failed due to a temporary reason.