Hi Everyone,
Have created a codeunit to import file and move processed file to another location. When i run the codeunit manually, it works correctly.
But when i set this codeunit on job queue, it give blow error:
"Microsoft Dynamics NAV Server attempted to issue a client callback to create a DotNet object: System.IO.File (CodeUnit 419 File Management). Client callbacks are not supported on Microsoft Dynamics NAV Server."
Code written in codeunit:
FileMgt.MoveFile(GLSetup."Import File Path"+RecFile.Name,GLSetup."Import File Path"+'Processed\'+'Processed_'+ RecFile.Name)
Thanks!!