Company Rename Problem
vikram7_dabas
Member Posts: 611
Dear Concern,
Whenever I m rename Company Name, It is showing me error given below:
The Field must be included in Table's Primary Key
Field: Group
Table: Company
This "Group" field is customised field in Table Company(ID 2000000006) of Data Type Text Length 30. :idea:
Whenever I m rename Company Name, It is showing me error given below:
The Field must be included in Table's Primary Key
Field: Group
Table: Company
This "Group" field is customised field in Table Company(ID 2000000006) of Data Type Text Length 30. :idea:
Vikram Dabas
Navision Technical Consultant
Navision Technical Consultant
0
Comments
-
-
No I havent change the Primary Key of Company Table Primary is same as Base(i.e., Name Text 30)Vikram Dabas
Navision Technical Consultant0 -
have u written any code to retrive the Group field in company information form/table?
i mean r u using group field in company information table?0 -
This is a known bug in Navision. I say known because I reported it in Financials 1.1 (The error was not in version 1.0). And it has been in Navision ever since.
I have posted the details of the bug nemerous times on mibuso and DUG, so search for more details, but in short terms:
The bug (feature back then) was introduced to allow upgrades from DOS to windows. In the DOS version of Navision, Reports, Dataports, and Batches used the object name as the primary key, but in windows this was changed to Object Number. To allow compatibility they created the ability to link the primary key of one table to the secondary key of another. But during ANY rename, the validation does not work, since the rename tries to find a non existent primary key.
Finding the error is very difficult since the field (and I assume key) that you created in the Company table is not the error. The error is that somewhere you created a field of the same type as the GROUP field and created a link to the company table to a secondary key.
To fix this you need to remove that link and the rename will work fine.
The recreate the link using code instead of properties.
PS When will this bug be fixed? There does not even exist a tool to upgrade from DOS to 5.00, so why have this "feature"?David Singleton0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 333 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


