Renaming company and VSIFT schema bounded views

Developer101
Member Posts: 569
I have renamed the company basically by dropping VSIFT because it wasnt possible to rename without dropping them as all of them were schema bound.
I do not see an issue in NAV but Is it right thing to do?
Thanks
I do not see an issue in NAV but Is it right thing to do?
Thanks
United Kingdom
0
Answers
-
Next Question is why there are those views?United Kingdom0
-
Mmmh...are you a nav developer or a sql developer?
If you are a nav developer, you should know what are VSIFT (take a look at msdn or manuals).
BTW, it's not clear what was your problem during the company rename (what was the error text?).
Moreover, these views will likely be re-created as soon as someone recompiles the related tables in nav1 -
I am a NAV developer. I know what SIFT is but never seen views for them before!!. Basically the error was 'can't rename company because of dependency' so I have dropped the views and renamed successfully.
Do you mean recompiling the table objects?United Kingdom0 -
1) Views are used since NAV 5.0, before SIFT was done through tables maintained through triggers
2) Dropping the views manually is big risk. Try to compile the tables or import them through fob. Or you can try to disable/enable the keys on the tables.1 -
Will try that - thanks.United Kingdom0
-
The views for VSIFT are dependent on only their related tables. They should not cause any problems when renaming a company. I have encountered the problem you described. A rename would fail with a "Schema- Dependency" error on a specific table. When investigating, I would find orphaned views. That is VSIFT views that did not have a related table index.
Here is what I do to solve these:
1. Export the table object.
2. Open table in designer and disable SIFT on all keys. Save and compile.
3. Go to Management Studio and drop any remaining views for that table. These are the orphaned ones.
4. Import original table object from step 1. This will recreate the proper views.
You should now be able to rename. Or find the next problem.
There are no bugs - only undocumented features.0 -
Thanks for reply.
I have done the renaming by deleting the views.
After I renamed, the views were created again. So there are no issues with the company change.
Next time I will do the test by disabling the keys.
Thanks
United Kingdom0
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