[X++] Error new field in CompanyInfo has not been explicitly selected
When adding a new field to the table CompanyInfo
somestimes the following error pops up:
Stack-Trace: Field 'MyNewField' in table 'CompanyInfo' has not been explicitly selected.
I encountered this behavior a few times. When looking into the SQL Database directly, it shows NULL
values in my new string field, which are not allowed by AX.
So running an update statement on the new field and setting the correct empty value (in my case '' for empty string) and restarting the AOS service solved the issue for me.