on ‎2016 Apr 07 11:35 AM
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
Request clarification before answering.
I talked to the product management and they confirmed that the file functions file_copy, file_move and file_delete don’t work with UNC paths
But they agree that those functions should support UNC paths
Let's see when it will be working ...
Best regards
Marcus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marcus,
Try with double quotes around the path. Space in the folder name "Shared Folders" could be causing problem.
--
Regards
Chethan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think not you but development made a mistake . I have the same issue in DS 4.2 SP6.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.