Hi,
Am getting the following error when trying to run a code unit on RTC. Note that the code unit is running fine on classic
Metadata for object of type CodeUnit with id 8009174 is in a failed state. This is caused by a previous exception:
Compilation of assembly 'C:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\assembly\Codeunit8009174.dll' failed. This can be caused by differences between binaries in your installation or your database. Ensure that all installation components are consistent and up to date. Error details: c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\source\Codeunit\Codeunit8009174.cs(7946,53) : error CS1001: Identifier expected
Any help.
Thanks,
Rizwana
0
Answers
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I have a custom codeunit ID 50067. It has a single parameter (table record as VAR). When I try to call the function I get the following error.
I checked my build in dev environment (7.00.34845) and windows client (7.0.34845.0). I have deleted all code from my Codeunit and put a simple MESSAGE('Hi') but the call fails every time. I deleted the Object Metadata per another post, but the problem persists.
This CU worked fine in our old 3.7B environment and it compiles without issue in 2013.
Any other ideas?
sounds like a difference between CA/L object and .NET/c#/code. Try this:
Make a Textexport of the object. Then delete the object from the database, reimport the textexport and compile it.
This could help to delete any metadata and forces NAV to rebuild the c# files from scratch.
Oliver
Weird.