ITPAM Unable to read the File available under UNC File Store
search cancel

ITPAM Unable to read the File available under UNC File Store


Article ID: 217382


Updated On:


CA Process Automation Base


CA Process Automation (ITPAM) is unable to read the File available under Shared Common File Store, and gives the below exception

CMD does not support UNC paths as current directories.
failed to switch to directory \\\sharepath\FILESTORE\custom

The file is present in that location.


Release : 4.3

Component : Process Automation


The error is correct; Windows CMD (which is how the Read File Operator is executing on the server) will not accept a UNC file path as the current working directory. However, there is an alternative - you can specify one in the file name itself.

To do this, leave the present working directory blank, or specify a local drive location (e.g "C:\\temp"). Then set the Source File Name to the full UNC path to it


and it reads the file correctly. Note that backslashes need to be escaped with another backslash in the Java parameters, so the \\ becomes \\\\ etc.

It is necessary to grant the user whose credentials you access the working directory to also have credentials to execute on the server the process runs on.