Execute Workflow in Batch Mode Windows 10

HI Guys,

I am trying to run the knime workflow in batch mode and using this command

“C:\Program Files\KNIME\knime.exe” -nosave -consoleLog -noexit -nosplash -reset -application org.knime.product.KNIME_BATCH_APPLICATION -workflowFile=“C:\Users<username>\Test.zip”

I have also tried running it by using

“C:\Program Files\KNIME\knime.exe” -nosave -consoleLog -noexit -nosplash -reset -application org.knime.product.KNIME_BATCH_APPLICATION -
workflowDir=“C:\Users<username>\knime-workspace\Test”

But it’s giving me the same error.

Hello @hdonga,

I don’t know if you still have the error or the need to correct this issue, but i was struggling and find out a solution :

  • use of --launcher.suppressErrors
  • put the workflow directory path before “-application org.knime.product.KNIME_BATCH_APPLICATION”
  • use of slashes for the workflow directory instead of backslashes
"C:\Program Files\KNIME\knime.exe" -nosave -consoleLog -noexit -nosplash -reset -workflowDir="C:/Users<username>/knime-workspace/Test" --launcher.suppressErrors -application org.knime.product.KNIME_BATCH_APPLICATION

Hope it helps anyone :smiley:

Br,
Samir

3 Likes

@hdonga,
Exit code 4 refers to errors during workflow execution. If you are sure your workflow runs successfully with the same inputs manually, it might be using relative paths in your file handling nodes. Try using absolute paths and see if running the workflow in batch mode still fails.

Here is a screenshot from the archives since the site does no longer exist.

https://web.archive.org/web/20190705041125/http://docs.hpc.shef.ac.uk/en/latest/iceberg/software/apps/knime.html

3 Likes