The field 'Inventory' cannot be located. Removing fields is not allowed.

kuhi
Member Posts: 18
Trying to add a field in Transfer Order Subform that shows the "Remaining Quantity" from "Item Ledger Entry".
Filtered by Open=true, Displaying the correct "Item No." and "Location Code" filtered by "Transfer-to Code".
This is my "Transfer Line" table extension:
This is my "Transfer Order Subform" page extension:
When I try to compile I get this error:
Filtered by Open=true, Displaying the correct "Item No." and "Location Code" filtered by "Transfer-to Code".
This is my "Transfer Line" table extension:
tableextension 50100 "TransferLineExt" extends "Transfer Line" //5741 { fields { field(50100; Inventory; Integer) { Caption = 'Inventory'; FieldClass = FlowField; CalcFormula = sum("Item Ledger Entry"."Remaining Quantity" where ("Item No." = field("Item No."), Open = filter(true), "Location Code" = field("Transfer-to Code") )); } } }
This is my "Transfer Order Subform" page extension:
pageextension 50100 "TransferOrderSubformExt" extends "Transfer Order Subform" //5741 { layout { addlast(Control1) { field("Inventory"; Inventory) { ApplicationArea = All; } } } }
When I try to compile I get this error:
[2022-02-14 04:29:14.58] The request for path /BC/dev/apps?tenant=default&SchemaUpdateMode=synchronize&DependencyPublishingOption=default failed with code UnprocessableEntity. Reason: TableExtension TransferLineExt :: The field 'Inventory' cannot be located. Removing fields is not allowed. See more at https://go.microsoft.com/fwlink/?linkid=2002422.
0
Best Answer
Answers
-
One thing I notice is your new field needs to be "Decimal" not "Integer".There are no bugs - only undocumented features.0
-
@kuhi This Option will surely do your job but it can also have certain impacts so be precise use to this.Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions