Subject:path problem, xps_file:writeAll Author:Bruce Cantor Date:18 Apr 2023 01:35 PM
Hello everyone,
I'm currently having an issue with my xquery script not being able to save a file to a UNC path.
I'm using the function xps_file:writeAll(x,y) from the namespace xps_file = "ddtekjava:com.ivitechnologies.pipeline.ext.io.FileOperations" to write a text file, and I'm getting the path from a config file.
The script works fine when I write to a local disk, but the file isn't being written when I use the UNC path, even though the function returns true without any errors.
I've tried different variations of the UNC path, but I'm not having any luck in getting the file to the correct location.
Any advice or suggestions would be greatly appreciated.
How do I write the UNC path correctly so that the file is written to the correct place?
Subject:path problem, xps_file:writeAll Author:Bruce Cantor Date:20 Apr 2023 08:27 AM
HI Ivan
I have tried with the five slashes but that does not result in a file either.
I know the server has the rights to write to this directory, because I could write via a pipeline Output port.
And if I add a debug port in the bindings file, it results in a file written to exactly this directory.
But I needed to change the way the file was written because the user demanded a special name for the file.
Subject:path problem, xps_file:writeAll Author:Bruce Cantor Date:21 Apr 2023 11:26 AM
Hi Ivan,
I wanted to let you know that the issue has been resolved. It turns out that the five slashes were the key to resolving the problem. The other issues that were encountered were due to user error. Thank you for providing your support.