Knime batch mode error: Workflow is locked by another KNIME instance

When executing a knime workflow in batch mode I am getting below error:
ERROR main BatchExecutor Workflow is locked by another KNIME instance

It executes fine from knime GUI.

This is what I have done. Please let me know if I am missing anything:

  1. I exported a knime workflow from knime GUI on local path which gave me .knwf file.
  2. I zipped this file as “Dynamic merge.zip”
  3. I am executing it in batch mode with following command:
    knime.exe -consoleLog -noexit -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION -reset -workflowFile="D:\HSI\Knime\Dynamic merge.zip"

I have checked existing threads on knime forum around similar to this topic but did not get relevant solution. Please guide.

Knime team, could you please guide?

Found a solution/workaround. I was able to execute workflow with workflowDir option. Looks like ‘workflow locked…’ problem is with -workflowFile way.

So the updated command is:
knime.exe -consoleLog -noexit -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION -reset -workflowDir=“D:\HSI\Knime\Workflows\Dynamic merge”

“Dynamic merge” is the parent project folder in knime workspace where all workflow artifacts are saved.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.