This is a pain point with Payment Journal numbering + approvals + file export in Business Central.
1. That error occurs because Allow Gaps = TRUE + Manual No. = FALSE means BC enforces strict sequential usage of the number series.
> When you delete some suggested lines, there is now a "gap" between the numbers assigned and the ones that will post, BC expects the deleted numbers to be used first, hence it throws the error.
2. Challenges with Approvals & Pre-assigned Numbers
> Payment approvals are tied to the Line No. and Document No. at the time of approval.
> If Document No. is re-assigned at posting (because you use Posting No. Series), the approval entry loses its 1:1 traceability to the posted ledger entry.
3. Recommended Best Practice
The ideal setup is to use two separate number series:
Document No. Series > Assigned when the journal is created (used for approvals & file export).
Posting No. Series > Assigned at posting (used in G/L entry).
But with payment journals, we want one consistent number across approval, export, and posting, so we can’t just rely on Posting No. Series.
4. Optional: Add Customization for "Pre-Assigned Number"
> If you absolutely must not allow gaps (for audit compliance), a small customization or Power Automate flow can:
> Reserve a number when Suggest Vendor Payments is run.
> Release the number if the journal is canceled.
> Ensures fully sequential, gapless numbering even when lines are deleted.
Thanks
Rishabh