CSV reader - I need a string

Hi @a.formella , I had a play with the File Reader and found the same as you that it doesn’t play nicely if the file path is a network share. I put together a small workflow to demonstrate this, and how to circumvent the issue rather than having to edit your xml files directly.

KNIME_Network_path_to_file_reader.knwf (18.3 KB)
Having arrived at that solution, I wrapped the central functionality into a component, as I could see that I might have a similar issue at some point in the future. All you would then have to do is pass the flow variable name that contains your network path, and the component would return a new flow variable containing the URL. The flow variable would be the same name but with the suffix _URI.

If you want to give the component a try, I’ve uploaded it to the hub at https://hub.knime.com/takbb/spaces/Public/latest/String%20File%20Location%20to%20URL
And there is a demo workflow based on the one I’ve uploaded here at:
https://hub.knime.com/takbb/spaces/Public/latest/KNIME%20Test%20String%20File%20Location%20to%20URL%20component

6 Likes