When you assign the value to different data type, you will get this type of error message : "Assignment or comparison loses precision" For example:int x = 10;real y;y = x; To solve this issue, we can use the functions like any2real, any2int, any2stry = any2real(x);
Category: any2Str
AX – D365FO – How to solve error : “Error executing code wrong type of argument for conversion function” while using any2str
If you try to convert a number into a string using any2Str() method error "Error executing code wrong type of argument for conversion function" can occur. To solve the problem try using num2Str() or int2Str() method