Changing Primary Key troubles

PaLPiTaTioN
Member Posts: 55
Hi,
I changed the primary key of an empty table and now I want to save the table definition. I receive the message "The change in the primary key definition has resulted in two records with the same primary key value". This cannot be true, because there are no records in the table. Does anybody know how I should solve this problem?
I changed the primary key of an empty table and now I want to save the table definition. I receive the message "The change in the primary key definition has resulted in two records with the same primary key value". This cannot be true, because there are no records in the table. Does anybody know how I should solve this problem?
0
Answers
-
Stupid me! If I would have read the whole error message, I would have seen the solution, because the table is not shared and another company has data in the table that's not unique anymore. Solved :-).0
-
If there is one thing I got from reading everyone's post it's that Primary Keys are not something to mess with O:)0
-
Savatage wrote:If there is one thing I got from reading everyone's post it's that Primary Keys are not something to mess with O:)
That doesn't surprise me. But this table was designed by me a few years ago and was used only by one user en for one goal. Now, the goal is changed and so should be the table. Because I created the stuff myself en there are only two tables related, it shouldn't be a big problem here. I wouldn't just change the primary key for the Jobs table, for instance
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