Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

Batch run location showing Client but batch actually running on server

$
0
0

Dear All,

I am facing a problem i am not able to understand

I have created a batch process, The menu item calling the batch process has its RunOn property as "Client".

The runOn property of the class is "Called From" and the class has a run Impersonated method which is returning a value false.

I wanted to check if the job is running on the client or not, to do so i had added the below code.

if (isRunningOnServer())
{
info("server");
}
else
{
info("Client");
}


When i start the process, value "Server" is displayed in the infolog.

Does anyone know why this is happening?

Regards,

Ajay K S


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>