Tuesday, 8 January 2013

Delete files in server while batch processing in Dynamics Ax2009


Target file should be in UNC format – in batchprocess run in server ax2009

The Given file path is accepted by ordinary Processing which is run in server(while mail sending).
eg: “AXAPTASYS\\D:\\foldername\\filename.pdf” (assume that AXAPTASYS is a computer name)
But while Batch Processing 
The error ‘Target file should be in UNC format’ occurs.
The solution is,
instead of using the following path ,
“AXAPTASYS\\D:\\foldername\\filename.pdf” 
This is not an UNC path.
we can use the following.
@”AXAPTASYS\D$\foldername\filename.pdf” .