Worflow is executed and log is produced, but i don’t understand why it changes the workspace’s path to “C:\Users\myname\knime-workspace”
as showed in log:
(this folder doesn’t exists, so it creates this folder and put log there)
while my workspace is set to another directory: C:\KNIME_REPOSITORY.
I tried adding option -data= <workspace_path> to the .bat, but it won’t change anything…
Could someone please help me to understand and fix that?
Thank you
(ps. Sorry, I’m not an expert)
I think it’s also the reason why if I use relative paths for my tables (knime://…) in the workflow it fails execution: every path is substitute with the wrong path…
“C:\KNIME_REPOSITORY” (right path) is replaced with “C:\Users\myname\knime-workspace”
That’s an interesting problem. Sadly I don’t know the answer, but I’m guessing the command line argument -data=<workspace_path> is being overwritten by another config file loaded.
Could you check the knime.ini file for a -data parameter? If its not in there, you could try the preferences.epf you are loading or changing the RECENT_WORKSPACES variable in <knime-install-folder>\configuration\.settings\org.eclipse.ui.ide.prefs (make sure to escape backslashes, colons, etc.). This last change will also affect KNIME when started normally.
Thanks for testing all these settings. How peculiar.
What happens when you start KNIME normally (with GUI)? Does that also use the wrong workspace location? If so, you can set it to C:\KNIME_WORKSPACE via File → Switch Workspace → Other…
And just to be sure – your batch file does execute the correct knime.exe, right? Not some other installation elsewhere on your pc.
workflow’s execution from GUI is correct, and when I start Knime normally it uses right workspace (i see also in the knime.workspace variable that path is correct, and relative paths for I/O files also work correctly), I have no other knime installations on my pc (this is the very first installation of Knime on a very new pc with wodows 10)