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

Error while excel import via Batch Job. (RunBaseBatch) [Stack trace: Invalid attempt to call SysExcelApplication.construct running in CIL on the client.]

$
0
0

Dear All,

I have been trying to import excel file in AX 2012 R2 via batch job. I have extended class via RunBaseBatch.

The error I am facing is as follows :

"Stack trace: Invalid attempt to call SysExcelApplication.construct running in CIL on the client."

I have tried so many ways.

First -> Used single class extending runbase batch and did set it's property of "RunOn" with "SERVER"........ Did not work.

Second - > Created two class one's property of RunOn with "Client" and other with "Server".

Later, I wrote excel reading code in the class(class 1)  which has property set as Client. and made the class (Class 2) which has property as server as my batch job.

Now from Class 2, I am calling the method of class 1.................But it also didn't work.

After job execution I am getting an error in the log as follows

"Stack trace: Invalid attempt to call SysExcelApplication.construct running in CIL on the client."

Please suggest me the solution for this issue.

Thanks & Regards.


Viewing all articles
Browse latest Browse all 72043

Trending Articles