0

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 Answers1

0

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).

ycr
  • 12,828
  • 2
  • 25
  • 45
  • Yes, I saw that, but it says - " UNC names are supported under Windows " One, I am using a Linux box and when I try reading it using File Connector, it still says file not found – Sathvik Movva Jul 31 '23 at 21:04
  • It seems it's only supported in Windows environments. How about mounting the location to the Linux box and accessing through a Unix path? – ycr Aug 01 '23 at 01:09