Options

RTC problem with if Codeunit.run then;

StormStorm Member Posts: 27
edited 2012-06-02 in NAV Three Tier
Hi
Someone at my company has done a "run-time" (Client) upgrade of a Customers' NAV to R2... So no objects were changed...

Suddenly a certain button doesn't work anymore in RTC... If I run the functionality in the Classic client it works perfectly :-)

I have tested the functionality and If I change a certain line from
if Codeunit.run(XXXX) then;
to
Codunit.run(XXXX);

The code in the codeunit runs again (without any errors) in RTC... How can that be?

I am getting a little anxious because the if codeunit.run then; are used many places...

Thanks.

Comments

  • Options
    ChinmoyChinmoy Member Posts: 359
    Hi,

    That is very strange.

    It is the OnRun and it cannot be related to a return from a function. So, both the code should run in exactly the same way. If it was a function inside the CodeUnit which is returning a true or false, there may have been some different behavior after the return is captured and validated. But in this case there should not be anything different whether it is If Codeunit.Run then or Codeunit.Run. :?

    Rgds,

    Chn
  • Options
    kinekine Member Posts: 12,562
    Were the objects recompiled after the upgrade? This could be critical step since NAV 2009...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.