FIX: AP Automation creates empty purchase records when processing a document
Print
ZTN4609
This Zetadocs technical note applies to:
- Zetadocs AP Automation and Batch Delivery extension for Business Central version 3.0.23312 and later.
Symptom
When processing a document from the Zetadocs Document Queues with AP Automation, empty purchase records are created in Business Central to preserve the No. Series and a warning message telling you this is displayed:
"One or more related posted documents have been generated during deletion to fill in gaps in the posting number series..."
This applies to systems that do not allow gaps in the No. Series used for Purchase Invoices or Posted Purchase Invoices.
Cause
Zetadocs creates a preview of the purchase record in order to check the amount calculations and if there will be any posting errors, this preview record is deleted once the checks have been made. Business Central will then create a blank record in order to preserve the No. Series.
Resolution
To stop these blank records being created follow the steps below:
- Ensure you've upgrade the Zetadocs extension to version 3.0.24030 or later.
- Go to the Zetedocs System Settings page and add a new key "DisableAdePreviewRecords" and tick the bool column.
- Exit the Zetadocs System Settings page and try to process a document from the Zetadocs Document Queue again.
Status
This behaviour was corrected with the fix detailed above.
Last updated: 27th Febraury 2024 (MP)
Keywords: AP Automation, Document Queue