Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Monday, February 17, 2014

Request for the permission of type 'SqlStatementExecutePermission' failed in Dynamic AX 2012

Hi,

sometimes running a Job in AX will cause above error.

Request for the permission of type 'SqlStatementExecutePermission' failed.
(S)\Classes\SqlStatementExecutePermission\demand
(S)\Classes\Statement\executeQuery
(C)\Jobs\test - line 21


Solution:
                     Run this job on Server.
How to run in server:
                     Create a menu item of type action, give the object type as Job ,and object name , and set the property Run on as" Server ".

Enjoy,

No comments:

Post a Comment

How find size of recordsortedlist in D365/AX 2012

Hi, This is the continuity of the previous article where we are now getting the size of recordsortedlist . if(recordsortedlist.len() >1) ...