Microsoft Business Solutions-Axapta 3.0 is now part of Microsoft Dynamics AX 3.0. All references to Microsoft Business Solutions-Axapta and Microsoft Axapta pertain to Microsoft Dynamics AX.
Symptoms
You may receive the following error message in Microsoft Business Solutions - Axapta MorphX:
Error executing code: LedgerJournalPost (object) has no valid runable code in method "main".
Cause
This problem may be caused by the following issues:
-
A method that is being called has syntax errors in the code.
-
Code compilation failed.
-
An object is damaged in the current layer that is being used.
Workaround
To work around this problem, use one of the following methods.
Method 1: Recompile the object
-
On the File menu, point to Open, and then click Application Object Tree.
-
In the Application Object Tree window, locate the object that you want to recompile.
-
Right-click the object name, and then click Compile.
Method 2: Recompile the Application Object Tree
-
On the File menu, point to Open, and then click Application Object Tree.
-
Click Compile.
Note This step starts a full compilation that is similar to the compilation that occurs when you install or update Microsoft Axapta.
More Information
To reproduce this problem, create a syntax error in a method, and then try to use this error method in a job.
Stack trace:
(C) \Classes\LedgerJournalPost\main (C) \Classes\FormFunctionButtonControl\Clicked (C) \Classes\FormFunctionButtonControl\Clicked (C) \Classes\FormMenuButtonControl\Clicked