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

Notifications

Announcements

Community site session details

Community site session details

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

Standard Prod. Order Picking List not sorting by Line No. after customization

(1) ShareShare
ReportReport
Posted on by 2

I copied the standard “Prod. Order – Picking List” report and made a small customization.

The standard report structure is:
Item
 └─ Prod. Order Component

I want the report to print Production Order Components in Line No. sequence

(i.e., components sorted by Line No. within each Production Order).

 

Change attempted

In the copied report, I added sorting to the child dataitem:
DataItemTableView = sorting(Status, "Prod. Order No.", "Line No.");

I also tried:
sorting("Line No.")

Issue

Even after applying the above sorting:


  • The report does not print components in Line No. order

  • The output order is inconsistent when:

    • Multiple Items exist

    • The same Production Order has multiple components

    •  Debugging shows that sorting is already incorrect at the AL dataset level

  • RDLC has no additional grouping or sorting

  •  

Question


  1. Is this a known / expected limitation of AL reports when using Item as the parent dataitem?

  2. Is there any supported way to enforce global sorting of Prod. Order Component by Line No. while keeping Item as the parent

  3. Is the recommended approach to:

    • Redesign the report to use Production Order as the parent, or

    • Collect data into a temporary table and print from there  

Any official guidance or best practice would be appreciated.

Prod. Order Component (actual table order – correct) :

Line No. Item No. Description
10000 ITM-A Bracket Left
20000 ITM-B Bracket Lock
30000 ITM-C Bracket Right
40000 ITM-D Door Stay
50000 ITM-E Safety Cover


Item master (Item-driven order):
Item No. Description
ITM-E Safety Cover
ITM-A Bracket Left
ITM-D Door Stay
ITM-C Bracket Right
ITM-B Bracket Lock
Report Output (actual – incorrect):
ITM-E (Line 50000)
ITM-A (Line 10000)
ITM-D (Line 40000)
ITM-C (Line 30000)
ITM-B (Line 20000)
 
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    97,069 Super User 2025 Season 2 on at
    I apologize that I haven't reviewed your report in detail. I hope the following information can give you some hints.
    Dynamics 365 Business Central: Can we change the default sorting/line ordering of standard reports
     
    Thanks.
    ZHU

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,078

#2
YUN ZHU Profile Picture

YUN ZHU 1,133 Super User 2025 Season 2

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 1,120

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans