code change · fixFinanceofficial - Microsoftreviewed - checked by Opus

#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.

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

Context

  • Work items: AB#654023
  • Labels: ADO: Sync, From Fork, Team: Finance
  • Systems: finance

No source states these links: they share an object, a model read them, or a person found the same subject.

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).