Metadata Corrupt in RTC | Experiences
Today, something terrible happened at one of my NAV 2009 RTC customers.
After importing a fob with a changed report layout, sudenly people started calling me (I was working from home) that they were kicked out of Navision (yes, they call Dynamics NAV 2009 Navision, wonder where they got that from). Someone even called it a Navision Crash.
I seemed that for some transactions NAV returned an error message Meta Data not found, or Object Meta Data has changed. First for table 2000000073. So I deleted that metadatarecord and it was fixed, but then it other tables start to fail. Same solution. Then, Table "Object"... Hmmmm. You cannot manualy compile that table so I was stuck.
Sweat... (And I can stand a lot of stress, believe me)
Fortunately most main processes still worked, only a few sub processes failed.
Then, we found out that the configuration was also corrupt. When personalising a page or menu NAV would simply crash and only restart if you delete the User Personalisation records.
Sweat more...
I restarted the Service Tier. No changes.
Shutting down NAV completely was not an option since that would shut down business critical processes.
So we decided to keep it like that, knowing that some processes did not work and look at it later.
To save time I decided to create and restore a backup to try to simulate it. This is where the story becomes really strange.
When doing the same processes that failed in prodution in the restored database everything worked. And I did not change ANYTHING. NOTHING!
I tested and tested but could not find it.
We decided to do the same for the production system this evening. And it seems to work. The metadata messages dissapeared. Like snow in the sunshine.
Wait, it becomes even stranger.
I reused the Production service tier for the new production database and attached the old production database (nothing changed, same database) to another service tier we use for whatever. (read: never). And also in this service tier the problems are gone.
So my guess is, that the problem is caused by some configuration file somewhere. I hope Microsoft reads this and a developer has an AHA erlebnis.
Hopefully this was a once-in-a-lifetime experience, but next time I know what to do
Cheers,
/Mark