Compile errors - AX 2012 - Argument is incompatible with the required type

 I stumbled today on a well know error: 'Argument is incompatible with the required type.'. Looking at the code all is fine, going to definition of the method the parameters are the proper ones, however, hitting the Alt+Ctrl+Space to see the method signature displays a different table name than the one in the definition (one of the parameters is a table).

So, I think it same to do something with the object' IDs  ... How I fixed that: just deleted the offending class and table, created a new table just to allocate a new ID, and then imported back the table and the class. This resolved the compile.

No comments:

Post a Comment