#13294 [29.x]-Exporting vendor remittance gets stuck when a payment jour nal is sorted by Document No.
Fixed an issue where exporting vendor remittance advice from a payment journal sorted by Document No. would hang indefinitely by ensuring lines are processed in primary key order instead of the current sort order.
- 2files
- 1AL files
- 1objects
Pull request · merged into releases/29.x (BC29) on 2026-10-30 by DhavalMore88 (community contribution) · 2 files (+52 -0), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Vendor remittance export now completes successfully when payment journal is sorted by Document No.
- Solution uses SetCurrentKey to force processing by primary key (Journal Template Name, Journal Batch Name, Line No.) which doesn’t change during export.
- Prevents infinite loop caused by Document No. changes moving already-processed lines ahead in sort order.
- Added regression test ExportPaymentJournalSortedByDocumentNo to prevent recurrence.
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 10250 “Bulk Vendor Remit Reporting”, Base Application (CA layer): modified
Context
- Work items: AB#654023
- Labels: ADO: Sync, From Fork, Team: Finance
- Systems: finance
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Send Remittance Advice Extension | Microsoft Docs — possibly related: Describes remittance advice export functionality for vendor payments, which the codeunit handles. (model-linked)
Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).