Read files on UNC path using File Connector - WSO2 EI(Linux)

90 views Asked by At

How to Read files on UNC path using File Connector on WSO2 EI(Linux)? I am getting the below error while trying to read the file in a UNC location

WARN {API_LOGGER.FileMigration} - Executing fault handler due to exception encountered
WARN {API_LOGGER.FileMigration} - ERROR_CODE : 90001 ERROR_MESSAGE : FILE_CONNECTOR:FILE_OR_DIR_NOT_EXIST
WARN {API_LOGGER.FileMigration} - Executing fault sequence mediator : 
INFO {API_LOGGER.FileMigration} - text = An unexpected error occured, message = FILE_CONNECTOR:FILE_OR_DIR_NOT_EXIST

Do we have to have any specific connectivity established to read/copy/write a file to and from UNC(Windows) to WSO2 EI(Linux)?

Note: File is in the defined location.

Tried using @"sourceLocation", \\sourceLocation in the source path. Non of them worked.

1

There are 1 answers

2
ycr On

As per the documentation, the UNC paths are supported. The following is from the official documentation.

For local files, the URI format is [file://]absolute-path, where absolute-path is a valid absolute file name for the local platform. UNC names are supported under Windows (e.g., file:///home/user/test or file:///C:/Windows).