NAV vs SQL Schema mismatch Dynamics NAV 2013 R2
xSwazi
Member Posts: 31
After importing objects from my development environment to customer Live, T37 will not run nor compile. Restarting the Service has made the problem worse as RTC will not run.
In both cases, I get the error: "Either the parameter @objname is ambiguous or the claimed @objtype (COLUMN) is wrong".
Investigations show that a new field added in our development environment 50028 "Badge Position" is showing in the NAV table, however, it is not showing on the SQL tables (per company). I have tried in NAV to delete the column, rename it, add a new column with the same name. Every time I get the same message and or the table will not compile. I have also tried to reimport the table a few times. Same problem.
How do I fix the table or reset the SQL definition of the table?
HELP PLEASE.
In both cases, I get the error: "Either the parameter @objname is ambiguous or the claimed @objtype (COLUMN) is wrong".
Investigations show that a new field added in our development environment 50028 "Badge Position" is showing in the NAV table, however, it is not showing on the SQL tables (per company). I have tried in NAV to delete the column, rename it, add a new column with the same name. Every time I get the same message and or the table will not compile. I have also tried to reimport the table a few times. Same problem.
How do I fix the table or reset the SQL definition of the table?
HELP PLEASE.
0
Comments
-
Have you tried compiling all of the objects in the database - or "Build server Application Objects" from the tool menu?0
-
Yes quite a few times. That has not worked. I get the error each time.0
-
Have you tried adding the new field (after setting prevent data loss to no) to the live system object before doing your import? It will also let you see if there is any other cause for the problem.
(Not the ideal solution, but at least it might get you past your current problem.)David Machanick
http://mibuso.com/blogs/davidmachanick/0 -
You might need to manually add the field to the SQL table to get the sync started.________________________________
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com0 -
The new table sync paradigm outlined on the NAV team blog may come into play here: http://blogs.msdn.com/b/nav/archive/2014/03/27/table-synchronization-paradigm-in-microsoft-dynamics-nav-2013-r2.aspxRob Hansen
http://www.epimatic.com0 -
Thank you for all the tips and advice. Had help from Microsoft...How do you make this solved?
The problem was to do with Object Metadata and Object Metadata Snapshot not being in sync for the object in question (A change in NAV not sent to SQL). The Hash values did not agree. The fix was to stop the service, add the field causing the problem into the table in each company in SQL. Copy the hash value from Snapshot to Metadata. Sync Tenant in PowerShell. Then reimport the object in NAV. Compile and Sync Tenant again.
This must be done no one else on the database. Take an SQL backup before doing any of this. After each change Sync Tenant (you can not do it enough).
This all said I would ask Microsoft if you have this problem, or wait for the official help. Better yet use the latest version of NAV 2013 R2. Hope this helps someone at some stage.0
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
- 329 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