Hi everyone,
I don't know if this is a common Nav Bug but sometimes when I modifiy a C/AL CodeUnit, Save+Compile and then run,
the CodeUnit doesn't launch with the NEW modified code. Instead, it run the previous CU before the changes.
I have to restart NAV in order to have NAV run the changed CU. ](*,)
Is there a fix for this ?
I'm using NAV 21009 r2
Thank you for the help!
David
0
Comments
http://www.BiloBeauty.com
http://www.autismspeaks.org
first specify where u r changing the code?
I think the "SingleInstance" property is set to Yes.
rt?
I modify the codes in any methods of my own CodeUnit that I've created.
For example, I add a line like: Then I save and compile and Run the CodeUnit.
The message box shows up correctly.
After that I go back to the CodeUnit and put that same line in comment and compile it: But when I run it, the message box still shows up. Moreover, I can see that the line is not commented inside the debugger.
To work around this, I have to completely close and restart NAV...
I work in a virtual machine which shares the nav application with other coworkers but each one of us logs in their own Windows account.
Also, the SingleInstance property is set to "NO" but that's not the problem.
Any idea what could it be ? :-k
Thanks,
Dave
For example, add a line like:
Write this code either in a function or On the OnRun trigger of the codeunit. Then save and compile and Run the CodeUnit. And also check the Single instance property is set to No.
The message box shows up the message.
after that go back to the CodeUnit and put that same line in comment and compile it: , the code will not be run.
If you set the single Instance Property to yes then only this problem occurs. that you have to start Navision again...
Thank you for the help.
I think I found the solution which is as silly as leaving only one Codeunit open.
I actually had two or more same CU Windows opened in the background. #-o