Error while renaming the Item No.

Neha_Sarda
Member Posts: 5
Hi..
When i try to rename the item no. in item card i am getting an error saying,
The field below must be included in the table's primary key
Field -> Global Dimension 1 Filter
Table -> Item
I have checked all the objects through code coverage, there is nothing customized. Also Global Dimension 1 Filter is a flow filter which can never be included in a key.I am not getting anything while debugging also ](*,)
When i try to rename the item no. in item card i am getting an error saying,
The field below must be included in the table's primary key
Field -> Global Dimension 1 Filter
Table -> Item
I have checked all the objects through code coverage, there is nothing customized. Also Global Dimension 1 Filter is a flow filter which can never be included in a key.I am not getting anything while debugging also ](*,)
0
Comments
-
Try searching on the forum. There is a topic that was resolved discussing exactly what you've encountered.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Neha Sarda wrote:Hi..
When i try to rename the item no. in item card i am getting an error saying,
The field below must be included in the table's primary key
Field -> Global Dimension 1 Filter
Table -> Item
I have checked all the objects through code coverage, there is nothing customized. Also Global Dimension 1 Filter is a flow filter which can never be included in a key.I am not getting anything while debugging also ](*,)
Its been discussed many times, its a bug in NAV that has been there since Navision Financial version 1.1 (it was not in versions 0.9 or 1.0) you need to find the table relation that points to the Item table and filters by global dim 1.David Singleton0 -
David Singleton wrote:Neha Sarda wrote:Hi..
When i try to rename the item no. in item card i am getting an error saying,
The field below must be included in the table's primary key
Field -> Global Dimension 1 Filter
Table -> Item
I have checked all the objects through code coverage, there is nothing customized. Also Global Dimension 1 Filter is a flow filter which can never be included in a key.I am not getting anything while debugging also ](*,)
Its been discussed many times, its a bug in NAV that has been there since Navision Financial version 1.1 (it was not in versions 0.9 or 1.0) you need to find the table relation that points to the Item table and filters by global dim 1.
It is not "filtering" but looking up for the field "Global Dimension 1 Filter" instead of the PK. It means that you will have TableRelation like Item."Global Dimension 1 Code" somewhere in some table...0 -
Is this really a bug though? I'm thinking that the reason for the error is the violation of database normalization theories.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Alex Chow wrote:Is this really a bug though? I'm thinking that the reason for the error is the violation of database normalization theories.
It is a "bug" because standard definition is using non-PK field for TableRelation, which is violation of DB normalization... ;-)0 -
kine wrote:Alex Chow wrote:Is this really a bug though? I'm thinking that the reason for the error is the violation of database normalization theories.
It is a "bug" because standard definition is using non-PK field for TableRelation, which is violation of DB normalization... ;-)
Correct. The bug is that Navsion allows you to create this relationship in the first place.
The most amazing thing is that I first reported this bug when upgrading a customer from Navision Financials 1.0 to Navision finacials 1.1 So this is not new.
Anyway the reason for this is stupid. Basically in the DOS version of Navision the primary key for Report, Import and Batch objects was the NAME of the object. In financials they introduced the Object number. But the convesion tool from DOS created Report links to the Name instead of the Object number, so in 1.1 they made this change. 13 years later we have a bug that is only there to support the upgrade from DOS :shock:David Singleton0
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
- 322 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