File Moving issue Batch Job AX 2012

Hi All, 

I had a class that runs and moves the file to another folder.  Its working when i run without batch job. But when i run it with batch job its stuck in processing state and having issues at this code move()

perm = new FileIoPermission(destinationPath, #io_write);
perm.assert();
System.IO.File::Move(sourcepath,destinationPath);

Do i need to make any code changes here to make it work?

Related
Recommended