Hey Buddies,…This is what happened…
Just a normal day of coding , I was restoring SQL backup from my Live database to my Test database in NAV. everything works cool. Test database is restored.
Now I navigate to companies and try to rename the company to Test and bang….error!
The following SQL Server error was unexpected: Object ‘”dbo.”Liberty.Live$Production Forecast Entry”‘ cannot be renamed because object participates in enforced dependencies. Caution: changing any part of an object name cannot break scripts and stored procedure.
What is SIFT Index?
SumIndexFields are created in Microsoft Dynamics NAV to support FlowField calculations and other fast summing operations
MaintainSIFTIndex property – Sets the value to determine whether SIFT structures should be created in SQL Server to support the corresponding SumIndexFields for the Microsoft Dynamics NAV key. The default value is set to yes.
NAV creates indexed views when value is Yes and save the table (and synchronize schema in newer versions)
So when you restore your database, the index views are also restored to the new database. Now when you rename a company in this database, conflict is created as index view still points to old database in my case Liberty Live database. hence the error!