Tuesday, October 25, 2011

Error : "The server-side impersonated (RunAs) session tried to invoke a method that is available for client-side processing only.

As we all know that in Ax2009 the batch runs on server side so when client is not open it will run on the backend side.But in Ax 4.0 it use to run on client side.Due to side while moving certain code (related to batch process)from Ax4.0 to Ax5.0 we have not modify the way of execution perfectly Due to that this kind of issue raised.
1.To move the all batch process run on client side please do modification on \Classes\RunBaseBatch\runsImpersonated() make it false.
2.To move our reported batch process then over write the above method in our class.
3.At the runtime you can change the batch execution location by the backend
UPDATE dbo.BATCH SET RUNTYPE = 0 WHERE CAPTION = '[Your job caption name]'


  1. Arrowsol Training offers you a way to training materials, classroom training, E-Learning, certification exams, Microsoft Press Books, and more for Microsoft Dynamics.
    Microsoft Dynamics Training | Microsoft Dynamics online Training | Microsoft Dynamics Training online

  2. Microsoft Dynamics AX online training, do keep a few things in mind to get the maximum out of the course as well as the application.we teach Microsoft Dynamics AX online training and class at Hyderabad.
    Microsoft Dynamics AX online training | Microsoft Dynamics AX training in Hyderabad

  3. brillant piece of information, I had come to know about your web-page from my friend hardkik, chennai,i have read atleast 9 posts of yours by now, and let me tell you, your webpage gives the best and the most interesting information. This is just the kind of information that i had been looking for, i'm already your rss reader now and i would regularly watch out for the new posts, once again hats off to you! Thanx a million once again, Regards, obiee training in hyderabad,informatica training in hyderabad