Very strange RENAME behaviour

zeninoleg
Member Posts: 236
Hi Everyone,
I think that i have found something very wierd in NAV 3.70. Here is what I do: I have a custom table where i have to rename some records. But when I call RENAME command with the new values Navision starts to Search some other tables(every time DIFFERENT table) and I get error message: Sales Header Table is not Compiled!
I cannot understand why would NAV search other tables taht have nothing to do with my custom table(i have no even link to any of them). I have also checked the object designer and did not find any table taht is not compiled. ](*,)
I have ran this program on my local DB(it has different data) and it works fine, but SQL gives problem........
First I have suggested that error is coming from somewhere else but debugger stops on the RENAME line. Any ideas?
I think that i have found something very wierd in NAV 3.70. Here is what I do: I have a custom table where i have to rename some records. But when I call RENAME command with the new values Navision starts to Search some other tables(every time DIFFERENT table) and I get error message: Sales Header Table is not Compiled!
I cannot understand why would NAV search other tables taht have nothing to do with my custom table(i have no even link to any of them). I have also checked the object designer and did not find any table taht is not compiled. ](*,)
I have ran this program on my local DB(it has different data) and it works fine, but SQL gives problem........
First I have suggested that error is coming from somewhere else but debugger stops on the RENAME line. Any ideas?
Best Regards,
Oleg
Oleg
0
Comments
-
zeninoleg wrote:Hi Everyone,
I think that i have found something very wierd in NAV 3.70. Here is what I do: I have a custom table where i have to rename some records. But when I call RENAME command with the new values Navision starts to Search some other tables(every time DIFFERENT table) and I get error message: Sales Header Table is not Compiled!
I cannot understand why would NAV search other tables taht have nothing to do with my custom table(i have no even link to any of them). I have also checked the object designer and did not find any table taht is not compiled. ](*,)
I have ran this program on my local DB(it has different data) and it works fine, but SQL gives problem........
First I have suggested that error is coming from somewhere else but debugger stops on the RENAME line. Any ideas?
I think that this is a very old Navision bug that I thought had been fixed, but I guess it still hasn't The bug was introduced in 1.1.
Normally you will see this if you have a Field that has table relations to other table, but to a field not in the primary key. The error will only occur if the field is populated, so having different data in each database would explain why it works in one DB and not the other.
The hard part is finding the error, since the error message will generally have no connection to where the actual error is.
Interestingly the upgrade tool kit from 1.0 to 1.1 would actually generate fields and data that would cause this error because of the change of primary key in reports from Object Name to Object Number.David Singleton0 -
Thanks David,
So you are saying that Navision looks at all the tables that are related to my table? That is wierd because it is a brand new table. However my table is linked to couple other tables by the non-primary key fields.Best Regards,
Oleg0 -
Hello, does anyone know how to fix this problem and identify wrong relation field? I ran to this problem after upgrade our customer to SQL from native DB. in test environment, there was no problem, but we had old data.
NAV version is 5.0, last product DVD 5.0.30488. I tried to update to last hotfixed client b 33335 but it did not help. MS said this bug was corrected in KB 2649055. Build 32980. (Wrong error messages when renaming a record on SQL only NAV5).
I tried hotfix 32980 too but it did not help.
Thanks in advance.
edit, shame on me. somebody imported some test object, which was not compiled, to production database. I forgot to filter all tables to compiled=no because I did not expect this scenarioMartin Bokůvka, AxiomProvis0
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