web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Records out of Order after Changing No Series

(0) ShareShare
ReportReport
Posted on by 88

Hi All,

We are running into a wired situation while processing partial ship/receipt once we changed the No Series for several types of Transactions.

Here we are gonna use two transfer receipts based on one transfer order to show you this situation:

  • The transfer order ready to be processed is 'TO1013'
  • The previous No Series for 'Transfer Receipt Header' is from 'TR109001' to 'TR109009'.
  • The first posted transfer receipt is 'TR109009'.
  • The No Series is changed since the previous No Series was used up.
  • The new-added No Series for 'Transfer Receipt Header' starts from '109010'.
  • So the second posted transder receipt is '109010'.

Here are these two records for 'TR109009' and '109010' in Business Central table-Transfer Receipt Header.

(

timestamp                          No_                Transfer Order No_

0x00000000000C8F8A     109010           TO1013

0x00000000000C8F90     109011           TO1013

0x00000000000C6F7B    TR109007       TO1011

0x00000000000C8F1D    TR109009       TO1013

)

  • Apparently, in the table, there was a automatic sort on records after changing the No Series.
  • The record for the second posted transfer receipt is up ahead of the first posted transfer receipt.

In our code we use:

postRpt.SetRange("Transfer Order No.", Rec.TransferDocNo);

if postRpt.FindLast() then ...

, trying to locate the second posted transfer receipt by using the transfer order number.

Because the two records in Business Central table-Transfer Receipt Header are out of order,

the function-postRpt.FindLast() will always get the record of 'TR109009' (the previous record before changing the No Series), no matter how many new partial receipts have been posted for the same transfer order.

Thus, our code now cannot get the lastest transfer receipt for this transfer order-'TO1013'.

And this problem happens during partial shipment/receipt/invoice for sales order/transfer order.

Here are our questions:

1. If this records being out of order after changes on No Series is some kind of bugs by Business Central?

2. If not a bug, is there could be any option to turn off the automatic sort on records after changes on No Series?

3. If we cannot turn off this automatic sort, is there could be some solution in AL code, that we can still get the correct lastest record after changes on No Series?

  • Suggested answer
    Andy Sather Profile Picture
    Microsoft Employee on at

    Hello,

    If you don't get further responses to this issue, you may want to raise a support request to Microsoft support

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 624 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 440 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 244 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans