I am using relative path in CSV reader with no problem:
knime://knime.mountpoint/<path in workspace folder>
or
knime://knime.workflow/<path in workflow folder>
but CSV writer won´t read this relative path:
knime://knime.mountpoint/<path in workspace folder>
It is converted to:
C:\Users\<user folder>\knime:\knime.mountpoint\<path in workspace folder>
It is very important for me, because I am using two separate computers, so I need to use same relative path on each. Is there any solution for this problem? Thanks in advance.
We have solution for relative path handling in CSV writer, XLS writer with Java Edit Variable node,
it is good(necessary) if you have separated folders for ”input” and ”output” files under the workflows and define these folders under the /srv/knime_server/
workflows/
input
output
so you define in a Java Edit Variable node a new Flow Variable („data_output”), which generates new java variable („out_data_output”)
and you have to set the value of the new Java Field:
and the end of the workflow where you configure the writer node you have to set the ”use variable” check box with „data_output” flow variable, after this it should be working!
after deploying to the server you can run the workflow (doesn’t matter if manually executed or scheduled).
Important information that your output files are generated to this folder: