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

batch
#1

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.

0 Likes

#2

Knime team, could you please guide?

0 Likes

#3

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.

1 Like

closed #4

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

0 Likes