Aged Debtors Takes Minutes and Times Out at Month End in Business Central
Stopgaps for this month's close, how to find where the time goes, and the durable fixes: custom aging rebuilt on queries and debtor analysis moved to a reporting layer.
When the aged accounts receivable report in Business Central runs for minutes and times out at month end, start with three stopgaps. Schedule it from the request page so it runs in the background through the job queue and arrives as a file instead of holding a session open. Narrow the filters: one aging date, one customer posting group or salesperson at a time, open entries only. And use analysis mode on Customer Ledger Entries for quick questions instead of the full report. The durable fixes come next: rewrite custom aging reports on AL queries that use proper keys and load only the fields they need, and move heavy debtor analysis to a reporting layer fed incrementally.
Why does the aged debtors report get slow at month end?
Because it does the most work exactly when the most people run it. An aging report has to read every open customer ledger entry, calculate the remaining amount as at the aging date (which means reading detailed ledger entries for partial payments and applications), and sort the result into buckets per customer. On a ledger with years of history, many partial applications and thousands of customers, that is a heavy read. At month end, the same report runs for every collector at once, alongside the posting and closing jobs, and the sessions compete for the same tables.
Customisations often make it worse. A copied report with an extra column per line, an extension that subscribes to report events, or a FlowField calculated for every row can multiply the work without anyone noticing until the ledger grows.
Which stopgaps work this month without any development?
Three, and they can be in place before the next close.
- Schedule instead of run: the Schedule action on the request page sends the report to the job queue, it runs in the background and the result lands in Report Inbox or by email. The collector no longer waits on a session that times out.
- Narrow the filters: one aging date, open entries only, and one customer posting group, salesperson or region per run. Smaller runs finish; one run for every customer may not.
- Stagger the runs: schedule the full report overnight after the last posting day, and let collectors work from that file in the morning instead of each running their own copy.
- Answer quick questions from Customer Ledger Entries filtered to open entries and grouped by customer and due date, using analysis mode where your version has it, rather than the full report.
How do you find out where the time actually goes?
Measure before you change anything. The Performance Profiler in the Business Central client records a run and shows which AL methods and which extensions take the time, so you can see whether the standard report, a custom copy or an event subscriber from another app is responsible. In Business Central online, telemetry sent to Application Insights shows long running AL methods and long running SQL queries with the object that triggered them. Microsoft also publishes operational limits for report execution time and rows; check the current limits on Microsoft Learn for your version rather than relying on an old figure.
Write down the duration, the filters and the profiler result. That record decides whether a configuration change is enough or a rewrite is justified.
What are the steps to fix a slow aged receivables report?
In this order, stopping as soon as the report is fast enough for the way credit control works:
- Measure before changing anything: Run the report once with the usual filters and record the duration. Use the Performance Profiler or telemetry to see whether time is spent in the standard report, in a custom report or in an extension subscribing to it.
- Schedule the report: From the request page, use Schedule so the report runs through the job queue in the background and the output is delivered to Report Inbox, instead of an interactive session that times out.
- Narrow the filters: Run one aging date, open entries only, and split by customer posting group, salesperson or global dimension instead of all customers at once.
- Use analysis on Customer Ledger Entries: For quick questions, filter Customer Ledger Entries to open entries and group by customer and due date in analysis mode where your version supports it.
- Check custom reports and extensions: If a copied or custom aging report is used, review it for loops over all ledger entries, missing keys, FlowFields calculated per row and fields loaded but not printed.
- Rebuild custom aging on a query: Rewrite the custom report on an AL query object that filters open entries, uses existing keys, loads only needed fields and aggregates in the database rather than in AL loops.
- Move heavy analysis to a reporting layer: Feed open and closed customer ledger entries incrementally into Power BI or a staging store, and run trend and collector analysis there instead of inside Business Central.
When is a custom aging report worth rewriting?
When the profiler shows the time is in a custom report or an extension rather than the standard one, and the custom columns are genuinely needed. Typical findings are a loop over every customer ledger entry with a calculation per row, detailed ledger entries read one by one, FlowFields such as remaining amount calculated for each line without filters that match a key, and dozens of fields loaded but never printed.
The rewrite uses an AL query object that filters to open entries as at the aging date, uses keys that already exist on the ledger tables, aggregates in the database rather than in AL, and loads only the fields the layout prints. The layout itself can stay; if it is an old RDLC layout being moved to Word or Excel, see moving RDLC layouts to Word. Custom work of this kind sits under Business Central AL development.
Should debtor analysis live in Business Central or in a reporting layer?
Both, for different jobs. The aged debtors report inside Business Central stays the document credit control sends, prints and reconciles to the receivables control account at month end. Trend questions, such as how aging moved over twelve months, which collector has the oldest balances, or which customer group pays later each quarter, are analysis, and running them as repeated reports inside the ERP is what makes month end slow.
Feed customer ledger entries incrementally into a Power BI model or a staging store, so each refresh reads only what changed since the last one, and run the analysis there. Large extraction and timeout patterns are covered on Business Central data extraction timeouts, and one maintained model for all reporting on one reporting stack for Business Central.
Can old customer ledger history make the report slower?
Yes, indirectly. The report reads open entries, but calculating remaining amounts at an aging date touches detailed entries for applications, and a ledger with years of small open differences has more open entries than it should. Clearing small open amounts with payment tolerance or a write off routine, as described on payment tolerance for small open amounts, reduces the number of entries the report must age. Deleting or compressing history is a separate decision with audit consequences; agree it with your auditor before considering it.
What should credit control expect after the fix?
A routine, not a race. The full aged debtors report runs on a schedule after the last posting day and is waiting in the morning; collectors run narrow versions for their own customers during the day; trend and collector analysis comes from the reporting layer; and any custom aging report has been measured and, where needed, rebuilt on a query. Month end stops depending on whether the report finishes before the session times out.
What does Solzet deliver for slow Business Central reports?
Solzet profiles the report and the extensions around it, sets up scheduled runs and filter routines with credit control, rewrites custom aging reports on AL queries where the profiler justifies it, and builds the incremental reporting layer for debtor analysis. We test every change on a copy of your production data in a sandbox and compare totals with the receivables control account before it goes live. Our own senior consultants and developers do the work. The service line is Dynamics 365 Business Central.
Organisations that track customers and collections outside Microsoft can feed the same reporting layer from a custom CRM. We recommend the right solution: Dynamics 365 (Customer Engagement, Business Central or Finance and Operations), Power Platform, or a custom-built CRM. One team for CRM, ERP and the integration between them.
What do people ask us?
Why does the aged accounts receivable report time out in Business Central?
It reads every open customer ledger entry and the detailed entries behind it, and at month end many users run it at once alongside closing jobs. Custom copies and extensions can multiply the work. Interactive runs that exceed the session limit time out.
How do I run the aged debtors report in the background?
Use the Schedule action on the report request page. The report runs through the job queue and the result is delivered to Report Inbox or by email, so no session is held open while it runs.
Which filters make the report faster?
One aging date, open entries only, and one customer posting group, salesperson or region per run. Several narrow runs usually finish where one run for all customers does not.
How do we know whether a customisation is the cause?
Record a run with the Performance Profiler, or check long running AL and SQL signals in telemetry. They show whether the time is in the standard report, a custom copy or an event subscriber from another extension.
Is it worth rewriting a custom aging report?
When the profiler shows the custom report is the cause and its extra columns are needed. Rebuilding it on an AL query with existing keys and only the needed fields removes most per row work.
Should collectors use Power BI instead of the report?
For analysis and trends, yes, from a model fed incrementally. The aged debtors report inside Business Central remains the document sent to customers and reconciled to the receivables account.
Can Solzet fix a slow aged debtors report?
Yes. We profile the report, set up scheduled runs and filters, rewrite custom aging reports on queries where justified, build a reporting layer for debtor analysis, and reconcile results to the receivables account before go-live.
Where should you go next?
Business Central implementation
Business Central online, reporting, integrations, AL extensions and support.
Business Central AL development
Custom reports rebuilt on queries with proper keys.
Business Central data extraction timeouts
Incremental refresh and staging for large ledgers.
One reporting stack for Business Central
One maintained Power BI model instead of three tools.
Small open amounts and payment tolerance
Fewer open entries for the report to age.
RDLC to Word layouts
Moving report layouts without rebuilding the data side.
Which solution is right for your business?
Tell us what you need. A senior consultant replies within one business day with a recommendation (Customer Engagement, Business Central, Finance and Operations, Power Platform or a custom-built CRM), not a sales script.