2009 RTC error: Metadata for object is in a failed state
Magfo
Member Posts: 11
We've got a customer which has "developed" a new problem. I've searched the net for a solution for the problem, but noone seems to have a permanent one. Thought I'd check here and see whether someone has found out the underlying reason for it.
What happens is that the users can't start RTC, they get an error which states that "Metadata for object of type xxx is in a failed state. This is caused by a previous exception: The specified path is invalid".
This can be resolved by restarting the service/compiling all objects + restarting the service. (Sometimes needed to be done twice or more).
So we have found a work around that solves the problem for the moment. BUT it is a reoccuring problem. Every other week or so, this reemerges. So far I/we have found no reseon for this. Even though it can be fixed rather quickly, it's still something that's really bad for the customer.
They had had their environment up and running for about an year before this first happened. It happened the first time connected (?) to a NAV web service being installed on the server.
Anyone that has a smart solution to this, or at least a more permanent workaround?
What happens is that the users can't start RTC, they get an error which states that "Metadata for object of type xxx is in a failed state. This is caused by a previous exception: The specified path is invalid".
This can be resolved by restarting the service/compiling all objects + restarting the service. (Sometimes needed to be done twice or more).
So we have found a work around that solves the problem for the moment. BUT it is a reoccuring problem. Every other week or so, this reemerges. So far I/we have found no reseon for this. Even though it can be fixed rather quickly, it's still something that's really bad for the customer.
They had had their environment up and running for about an year before this first happened. It happened the first time connected (?) to a NAV web service being installed on the server.
Anyone that has a smart solution to this, or at least a more permanent workaround?
0
Comments
-
My guess is it has something to do with the regional settings and the used date. On the server and client. Would like a quick fix too.0
-
In our case it doesn't seem like it's the regional settings. All users seems to have the same (swedish) settings, which the servers has.
You mean that you think that one user with other settings might connect and somehow make the metadata corrupt, which then makes it impossible for other users to connect?0 -
Note: Below I am just speculating what is happening but my problem is resolved....
Just found out another way to solve this. What happens is the RTC or Webservice needs this codeunit, table, etc. but it needs recompiling before the object can be used.
In your example "Metadata for object of type xxx is in a failed state. This is caused by a previous exception: The specified path is invalid".
The message "The specified path is invalid" is from the compiler. So something went wrong while compiling.
To resolve my issue I looked on the server into the folder: C:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\source and found a .cs file which was not compiled.
But why?
I created this piece of code:
IF CODEUNIT.RUN(codeunit) then begin
end;
message(GETLASTERROR);
In the message there still was the message "failed state", but also more info on which line and position the error occured in the .cs file.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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