web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Arbela Technologies Blog / AX 2012: Error executing co...

AX 2012: Error executing code: Wrong argument type for function.

Community Member Profile Picture Community Member

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:

  1. Check for permissions for Data source on SSRS report
  2. 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.

Comments

*This post is locked for comments