Wednesday, February 22, 2012

Metadata for object of type Table with id 20000000xx is in a failed state. This is caused by a previous exception: Object of type Table with id 20000000xx could not be found.


Hi all,

Sometime we face the error while trying to connect or change company in Role Center Client.

Metadata for object of type Table with id 20000000xx is in a failed state. This is caused by a previous exception: Object of type Table with id 20000000xx could not be found. 

xx Can Be - 01,07,09,10,20,22,24,26,28,29,37,38,39,40,41,42,43,44,45,46,47,48,49,50,52,53,55,56,58,59,63,70.

These are the System Hidden Tables in Navision. For the list of hidden tables refer this post.


Where is Metadata Stored?
Metadata is stored in Table 2000000071 Object Metadata for all navision objects ( visible / hidden).

Why this error?
This error occured if there in no metadata for any object in the table.

When Metadata is Created?
This has been created while we restore the database,if you remeber there is a new process in RTC Versions "PROCESSING OBJECTS" after creating keys.

How to create Metadata?
For Visible objects you can compile the object and the metadata will be created.
For Hidden tables, you need to work around.


Steps 
1) Go to File, Alter Database. Select Option Tab.
2) Check Single user & Uncheck Enable for Microsoft Dynamics NAV Server, as shown in image below.










3) Click Ok, after that you will receive message as shown below hit ok.













4) After process get completed, Check Enable for Microsoft Dynamics NAV Server as shown in image below.











5) Click ok on the message that appear. It will process all objects (visible & hidden) as shown below.











6) Once process get completed, goto alter database and uncheck the single user.










Now stop and start the NAV Server service and Run the Role tailored client. It will start working without any issues.

Thanks & Regards,
Saurav Dhyani
http://saurav-nav.blogspot.in/