Company Rename problem
vikram7_dabas
Member Posts: 611
I m using NAV 2009 SP1 IN Version in SQL,When I m going to rename company from Navision it is showing me following error:
..Sql error occurred when accessing the Item Ledger Entry table:
15336,"42000",[Microsoft][ODBC SQL Server Driver][SQL Server]Object "NavDev"."dbo"."$ABC" cannot be renamed because the object participates in enforced dependencies.
NavDev is the database name
ABC is a company name.
Maintain Defaults and Maintain Tablerelationship are false on Tab Integeration.
..Sql error occurred when accessing the Item Ledger Entry table:
15336,"42000",[Microsoft][ODBC SQL Server Driver][SQL Server]Object "NavDev"."dbo"."$ABC" cannot be renamed because the object participates in enforced dependencies.
NavDev is the database name
ABC is a company name.
Maintain Defaults and Maintain Tablerelationship are false on Tab Integeration.
Vikram Dabas
Navision Technical Consultant
Navision Technical Consultant
0
Comments
-
Hi,
I had a similar problem but with the Warehouse entry table. This occurred after an upgrade between V5 and V6. Simply trying to rename the table object brings up the SQL eror described.
The error message went something like this when I tried to delete the Company - bit more information than just trying to rename it.
3729,"42000",[Microsoft]ODBC SQL Server Driver][SQL Server]Cannot DROP
TABLE '<tablename>$Warehouse Entry 'because it is being
referenced by object '<tablename>$Warehouse Entry$VSIFT$8'.
SQL:
DROP TABLE "UK_100"."dbo"."Ireland - 200$Warehouse Entry"
In version 6 NAV stores SIFT information as Views. You can find these in the "Views" section of the SQL Management Studio tools. I saved the object, then deleted all of the keys (IN NAV)and then looked at the Views for that table in the Management Studio. There were a couple of "orphaned" views called $VSIFT$8 and $VSIFT$9 which I deleted (using the Management Studio interface) and it sorted the problem. I then re-imported the saved fob to restore the object. (This particular installation was multi-company so if a multi-company DB, you have to check all the companies).
Hope this helps.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
- 323 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