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

Lot No. field not in value entry table but allowed as filter.

(8) ShareShare
ReportReport
Posted on by 19
Hello all,

After a request of a customer for a report with specific lot filtering I stubbled upon this following situation. 

The current Version of the Base Application is 26.5 and I found the exact same behavior in the 27.0

I was able to filter the Value Entries table with lot no of my choosing. 

Example:




But when I tried to replicate this in my reporting logic and I found out that Lot No. is actually not a field in the Value Entry Table (5802). I aslo checked the page Value Entries (5802) and still there wasn't a lot no field there. I checked the filtering I did through the UI and it was correct. I know how to get around this, by using a get method on the Item ledger Entry table with the Item Ledger Entry No. field that I have in value entries.

My question still remains though. How is this possible? How can I filter a table with a field that it's not precent on the table and actually get correct results? Is it a bug? Is it a feature? If it's a feature how is it done? I would really like to replicate it. Any thoughts?
I have the same question (0)
  • Suggested answer
    Teagen Boll Profile Picture
    1,013 Super User 2026 Season 1 on at
    You would have to filter the Value Entries table on the Item Ledger Entry "Entry No." field or the reverse of that like you've already done. That's the only way to link them. I usually pull this data to power BI or other reporting tools and build a report that way instead.
  • Suggested answer
    Aman Kakkar Profile Picture
    2,977 Super User 2026 Season 1 on at
     
    You’re absolutely right — you normally cannot filter on a field that doesn’t exist in the underlying table. Since Lot No. is not part of the standard Value Entry (5802) table, filtering on it should not be possible unless something else is extending the table.

    If Lot No. is filterable and working correctly, then the field must come from:

    • A custom table extension
    • A partner/ISV app
    • A localization extension
    Please check whether you have any custom extensions or ISV/third-party apps installed that may extend table 5802 with a Lot No. field.
     
     
    Hope this helps.
    Aman K
  • Verified answer
    Jainam M. Kothari Profile Picture
    15,666 Super User 2026 Season 1 on at
    Hello,
     
    This is not a bug—it’s a feature of the Business Central filtering engine. When you filter the Value Entries page by Lot No., the system is actually applying a flow filter or a virtual join behind the scenes.
     
    The Value Entries page includes a FlowField or a linked filter to the Item Ledger Entry table, which does have the Lot No. field.
     
    So, even though the physical table (5802) doesn’t store Lot No., the page definition allows filtering through related tables using FlowFilters and keys.

    In a Summary:

    • The UI filter works because the page is designed to expose fields from related tables via FlowFields or temporary joins.

    • Your AL report logic doesn’t automatically replicate this because it queries the raw table, not the page metadata.

    • To replicate this, you need to use the same relationship: join Value Entry with Item Ledger Entry on Item Ledger Entry No. and apply the Lot No. filter there.
  • Suggested answer
    YUN ZHU Profile Picture
    97,970 Super User 2026 Season 1 on at
    Hi, Additionally, you can check the field number; if it exceeds 50,000, then it's a custom field.
     
    Thanks
    ZHU
  • Suggested answer
    OussamaSabbouh Profile Picture
    10,967 Super User 2026 Season 1 on at
    Hello,
     
    If you want to expose Lot No. yourself, the easiest way is to use Analyze and Add related fields, which uses the same implicit join the page relies on.
    For AL reports or queries, you still need to manually join to Item Ledger Entry.
     
    Regards,
    Oussama Sabbouh

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

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,161 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,046 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 932 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans