AL icon indicating copy to clipboard operation
AL copied to clipboard

'table field option' does not contain a definition for 'optionstring value' after June update

Open MrDavid5465 opened this issue 9 years ago • 2 comments

An error that I am experiencing after installing the June update is that anywhere I try to reference or check to see what a record's value from a field of the option datatype is and compare it to the available optionstring values, I get an error saying that the optionstring does not contain a definition for the given value. This appears to be affecting only default fields in the default tables.

for example: Sales Line is table 37. As you can see in the third image though, I am having this issues with more than just that one table.

capture1 capture2 capture3

MrDavid5465 avatar Jun 21 '17 12:06 MrDavid5465

Can you provide a stand alone code that reproduces the issue? For example the following code works correctly:

procedure Test();
    var
      SalesLine : record "Sales Line";
    begin
      SalesLine.Validate(Type, SalesLine.Type::Item);
    end;

Also, to confirm that these are not caused by the incremental compiler getting out of sync, could you please build with Ctrl+Shift+B and see if you're getting the same errors?

StanislawStempin avatar Jun 21 '17 13:06 StanislawStempin

I made a new project and it works. The difference was the navx files were out of date in my project.

MrDavid5465 avatar Jun 21 '17 13:06 MrDavid5465