Options

The NAV System has changed while you were performing

IonesiCIonesiC Member Posts: 14
edited 2012-03-21 in NAV Three Tier
The NAV System has changed while you were performing your activity. Please close your current task and try again. If you are unable to complete the activity, please contact your System Administrator.

Information for developers: Another user has modified CodeUnit 50100. Because the underlying data does not exist or is a different type, the object cannot be compiled correctly until the problem is fixed.
Error details: 'path..'\Codeunit50100.cs(276,11) : error CS0030: Cannot convert type 'int' to 'Microsoft.Dynamics.Nav.Runtime.NavOption'

(Action on a page button)
RecalculateCallsSchedulerCU.DeselectMarked();
CurrPage.UPDATE(FALSE);


(Function in Codeunit - 50100) (the codeunit is made by me, it is not standard)
DeselectMarked()

IF (RecalculateCallsSchedulerRec.FINDSET(TRUE, FALSE))
THEN BEGIN
REPEAT
RecalculateCallsSchedulerRec.Marked := FALSE;
RecalculateCallsSchedulerRec.MODIFY(FALSE);
UNTIL (RecalculateCallsSchedulerRec.NEXT = 0);
END;

I want to deselect all boolean records from a table, to make them from TRUE to FALSE.

I don't know what to do.
All is compiled. I have restarted the server. I have deleted the meta data.

Answers

  • Options
    rhpntrhpnt Member Posts: 688
    1. Have you tried with MODIFYALL?
    2. In your "RecalculateCallsSchedulerRec" there isn't a option type field called "next" by any chance?
  • Options
    IonesiCIonesiC Member Posts: 14
    I have tried with MODIFYALL and it is not woking.
    I'm not using NEXT??

    UNTIL (RecalculateCallsSchedulerRec.NEXT = 0);
  • Options
    IonesiCIonesiC Member Posts: 14
    No, i don't have any option fields next. I don't have names similar with functions, or things like thins.
  • Options
    rhpntrhpnt Member Posts: 688
    Error details: 'path..'\Codeunit50100.cs
    What's this? The .cs is a C# file extension.
  • Options
    IonesiCIonesiC Member Posts: 14
    yes I know. there is a problem when the NAV is converting the c/al code in c# code, but i don't know what...
  • Options
    rhpntrhpnt Member Posts: 688
    Check your "customsettings.config" file in the line <add key="EnableDebugging" value="false">.
  • Options
    IonesiCIonesiC Member Posts: 14
    what should I look for?

    <add key="EnableDebugging" value="false"></add>

    it is as you said
  • Options
    rhpntrhpnt Member Posts: 688
    Hmm...then you have to debug the .cs file...

    http://blogs.msdn.com/b/nav/archive/2012/03/05/rtc-debugging.aspx
  • Options
    IonesiCIonesiC Member Posts: 14
    I have found the error.
    I have used OptionVariable += 1; and it seems that RTC is not accepting this very good,
    because it has to transform the option var into INT, but in the same time is trying to increment an option var with an integer.
    So ... try not tu use var += 1;
Sign In or Register to comment.