Dear All,
I'm beginner here, customizing Dynamic AX 2012 R3
I create a class for batch job. The class process a file that read and move to other folder
and I got an error
System.IO.IOException: The process cannot access the file 'E:\AXFILE\AP\Upload\DealsPurchase.csv' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Dynamics.Ax.Application.VDI_MoveJournalFile.Moveuploadedfile(String _filename, VDI_JournalStatus _status, VDI_Module _module) in VDI_MoveJournalFile.MoveUploadedFile.xpp:line 32
at Dynamics.Ax.Application.VDI_UploadAPJournalDeals.Run() in VDI_UploadAPJournalDeals.run.xpp:line 19
at Dynamics.Ax.Application.BatchRun.runJobStaticCode(Int64 batchId) in BatchRun.runJobStaticCode.xpp:line 54
at Dynamics.Ax.Application.BatchRun.runJobStatic(Int64 batchId) in BatchRun.runJobStatic.xpp:line 13
at BatchRun::runJobStatic(Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at BatchIL.taskThreadEntry(Object threadArg)
Any suggestion, please?
Thanks in advance
Regards,
Bintang
*This post is locked for comments
I have the same question (0)