Skip to Content
0
Apr 07, 2016 at 10:35 AM

File functions and UNC paths

515 Views

Hi experts,

we are currently facing an issue with the file functions file_copy, file_move and file_delete with Data Services version 4.2 SP06 patch 2.

When we use a filename based on a mapped drive (like C:\temp\file.txt) everything works as expected.

But as soon as we use a file based on an UNC path (e.g. \\vmware-host\Shared Folders\C\temp\file1.txt) we receive the error that the input filename is invalid.

The strange thing:

Before we call the file_copy function we check if the file exists by using the function file_exists. And file_exists returns 1 which means that the file can be found even if we use the UNC path!?

For testing we used a job containing only the following simple script:

In the trace file we can see that file_exists finds the file:

But the error log shows that file_copy has a problem with the filename:

By the way: the Data Services service runs under a user account that has permission to the UNC path.

Are UNC paths not supported with the file_functions file_copy, file_move and file_delete?

Or did we make a mistake?

Thanks a lot for your support.

Best regards

Marcus

Attachments

script.jpg (48.2 kB)
trace_file.jpg (164.0 kB)
error_log.jpg (195.4 kB)