code change · fixFinanceofficial - Microsoftreviewed - checked by Opus

#13255 [Main]-Exporting vendor remittance gets stuck when a payment jour nal is sorted by Document No.

Fixed vendor remittance export hanging when a payment journal is sorted by Document No. The export now uses primary key order instead of the current sort order to prevent lines from being processed repeatedly.

Pull request · merged into main (BC30) on 2026-10-26 by DhavalMore88 (community contribution) · 2 files (+52 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Export loop now uses primary key order (Journal Template Name, Journal Batch Name, Line No.) instead of the journal’s current sort order
  • Prevents lines from resorting during processing when Document No. is updated
  • Each line is now exported exactly once instead of repeatedly
  • Added regression test ExportPaymentJournalSortedByDocumentNo
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#656758
  • 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).