Following issue happens only in server, In local it works fine.
I had placed few JSON files in knime server outside the WF. Using ListFiles I got he URL of the files, the URL of the files are knime server location and I need to get file path from it, so that i can use the file path variable to the java code to read the files. I am stuck at this place on how to get the file path from the knime server URL. I had tried to use URL to filePath node, but it fails to read the server location.
I have a folder in knime server with JSON.
If i use list files, URL and location will be given as output. Location column consist of “?” and the URL column contains “knime://knime.workflow/…/…/…/Schema/JSON/dummy-catalogue.json”
List item As the URL is knime server URL, My java code is like Files.get(Path(“knime://knime.workflow/…/…/…/Schema/JSON/dummy-catalogue.json” ), which fail to get read the json file in server. Because the URL is doesn’t provide the location of the File( File Path) .
List item I am expecting server location like /Schemas/Datadrive/JSON/catalogue instead of URL “knime://knime.workflow/…/…/…/Schema/JSON/dummy-catalogue.json” .
Please see the attached image in the link provided.