Strange, I added a field to a table, everything compiled. But when modifying a record in the table I’m met with the following error:
Unable to compare operands of type NavCode with NavInteger?
This was in a NAV2018, late CU.
I have seen this kind of error before, usually because of objects not in sync (compiling everything will solve that)
The only change made, was that I added a single Text field.
The error is catch after the OnModify trigger. It’s not a debuggable piece of code that generates the error.
After several failed attempts to locate the source, I delete the field, recompiled everything, and added it again. Then everything worked?
Strange Day 🙂
p.s. Next time I’m gonna check the generated C# code …