I have read several posts on this subject, but so far no luck.
I have created a very simple workflow just to see if I can get a bat to work.
Here is what I have so far.
“C:\Program Files\KNIME\knime.exe” -reset -nosave -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION -workflowdir=“C:/Users/mfarran/knime-workspace/test”
Can someone please let me know what I have done wrong?
Thanks for replying. I am intentionally keeping my workflow simple (i.e. Create table -> write to xls file)
so that I can solve the issues with running bat. Attached are the errors I get when running.
All of those “stack traces” mentioning org.apache.aries.blueprint followed by a lot of at ... lines are expected and “normal” (and at some future point going away as discussed here: Knime Analytics Platform V.3.6 error in Batch Mode )
The salient item in your logs is the last line:
ERROR main BatchExecutor Unknown option '-workflowdir'
I suspect this is case sensitive, please try workflowDir
Hi @Ana914 , an exit code 2 means that the parameters you are passing are wrong. Looking at your command line, you need to enclose what you are passing as workflowDir in quotes too, as you have spaces in your workflow name (like Program Files).
So, you need to add the quotes to workflowDir=“C:\Users… TEST1”
Thanks, Bruno! Now it doesn’t show that window which may be good? But I’m also not sure if it’s successful.
Apologies for my series of questions
The end node of my workflow is an Excel writer and I’ve set it up to open the Excel file it wrote. When running the workflow through cmd, would it also do the same?
Hi @Ana914 , I am not sure how this “interaction” (open after execution) behaves when executed via the command line. You can try and see if the file is opened.
If it does not open, you can open it via the command line after you run the knime workflow
Hi everyone. Please I need your help for to resolve the next errors in proccess batch:
Restore the connection in some nodes with “MySQL Connector” node and one error with grouping column. I used group function COUNT(*) in SQL instruction using “DB SQL Executor” node but I’m not need to add it one Group By…
Hi @Karlygash , you are pointing the workflowDir, which means Directory, which means folder, to a workflow file (test.knwf), and as the error message says “is not a Directory”.
You just need to point the workflowDir to the folder where the workflow is.
Alternatively, if that folder has several workflow files, and you want to specifically run the test.knwf only, then use workflowFile instead where you can point to the test.knwf file.
I have one more question, I ve read from different articles that I can schedule workflows using task manager. I am not good at scheduling, so I launched this command
“C:\Program Files\KNIME\knime.exe” -nosave -consoleLog -noexit -nosplash -reset -application org.knime.product.KNIME_BATCH_APPLICATION -workflowDir=“C:\Users\Karlygash_Mukhitova\please\StringLengthsss”
Can you please, help me, what is my next steps in order to schedule current workflow?
Well if you go to task scheduler in your windows system (you can just type it to search for it) and create a new task. You can set the exact execution time of the command.
br