'table field option' does not contain a definition for 'optionstring value' after June update
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.
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?
I made a new project and it works. The difference was the navx files were out of date in my project.