This is one of the oldest error plus SSRS tricks which we have worked on to get around the error: Wrong argument type for function.
We saw this error in Vanilla AX 2012 while running Picking locations report.
Error Message:
| Stack trace
(S)\Classes\QueryRun\get (S)\Classes\WMSPickingLocationsDP\processReport – line 24 (S)\Classes\SrsReportProviderQueryBuilder\initialize – line 59 (S)\Jobs\
|
Code causing the error in Process report:
wmsLocation =queryRun.get(tableNum(WMSLocation));
Solution:
- Check for permissions for Data source on SSRS report
- Compile AOT query.
Submitted by:
Khalid Mohammed
Senior Technical Developer
Arbela Technologies
The post AX 2012: Error executing code: Wrong argument type for function. appeared first on Arbela Tech.

Like
Report
*This post is locked for comments