To further analyze gaps in Posted Sales Invoices in Business Central, consider advanced checks beyond the Archive table, G/L Entries, Customer Ledger Entry, and Log entry. Most gaps originate from number series configuration, document deletion, reserved but unposted numbers, or issues in API/data aggregation.dynamics+3
Actionable Next Steps
1. No. Series & "Allow Gaps in Nos." Setting
-
Review the configuration of your invoice No. Series. If "Allow Gaps in Nos." is enabled, gaps can appear when records are deleted or errors occur during creation.yzhums+1
-
Investigate sales invoices that were started but deleted prior to posting—these can create gaps.tharangac+1
2. Incomplete/Deleted Documents
-
Check the Sales Invoice Header and Unposted Sales Invoices tables for documents with missing numbers or "reserved" numbers that were never posted.
-
Filter for the missing invoice number in both posted and unposted tables to see if any document exists with that number.dynamics+1
3. Audit Trail & Change Log Review
-
Use Business Central’s Change Log feature to audit deleted invoices, track changes, and identify the user/action responsible for gaps. Change Log captures insert, modify, and delete operations.learn.microsoft+1
-
Ensure audit trail functionality is fully enabled for all core tables related to sales invoices.
4. API/Data Aggregate Issues
-
If using integrations or reporting via the API, run the API Data Upgrade on the Sales Invoice Entity Aggregate table to fix data not properly updating in external systems.thatnavguy+1
-
Schedule and monitor job queue entries for API upgrades as needed.
5. Filtering/Visibility Issues
-
Ensure no unwanted filters are applied to your Posted Sales Invoice list that could hide records. Check both system-wide and local user filters.dynamics
-
Use the "Navigate" or "Find Entries" function to track down related entries and transactions across modules.learn.microsoft+1
Mitigation & Prevention Tips
-
Regularly review and maintain No. Series settings to match your compliance needs.
-
Enable and periodically audit the Change Log for relevant tables.
-
Educate users on the impact of deleting documents on number continuity.
-
Monitor job queue processes for data consistency in aggregated/reporting tables.linkedin+1
Further analysis should focus on No. Series setup, deleted or still-reserved documents, audit trails, API issues, and filter settings. This comprehensive approach will help pinpoint the cause behind missing invoice numbers and prevent future data continuity issues.thatnavguy+4