Dynamics AX 2012 parsing Int32 to table field integer
I'm using a referenced DLL to retrieve data from a webservice. The data retrieves well. I copy over some of the fields to inMemory tables. This works well unless for the Int32 types. As you can see, the Id field is of type Int32. The table field (ProductId) is an Integer. This compiles without errors, but when i run the code i get the following error: Error executing code: Wrong argument types in variable assignment. This error points to the line with the productId. Removing it makes the code work. I've also tried making the Id a string, and then str2int() the field but that doesn't work either. Any idea's? Thanks, steve
Try to marshal explicitly between the two types: System.Int32 netInt; int xppInt; ; // -- Other code // ... netInt = product.get_Id(); xppInt = netInt; tempData.ProductId = xppInt;
Clients seem to be running old (buggy) code after XPO project import
Number sequence AX 2012
SSRS MS words report with page break
How can you get a detailed error descriptions in Dynamics AX?
How to get the length of an array?
X++ loop through lines in grid control
Concatenating row values in x++
How do you access a macro in the AOT macro node?
How can I set the Backgoundcolor of an AX2012 Action Pane Button
How to Edit address using X++ in AX 2012
Number sequence issue Ax 2012?
Find code that's running in a Batch Job
What is the _isMexican boolean for in the Global::Checkpower method?
AlwaysOnTop property not behaving properly
Boolean AND logic in Microsoft Dynamics AX 2012 AIF QueryCriteria
Table: PrintMgmtSettings Field: Printjobsettings(Blob)