# Execution of Knime Workflow in Batch Mode

**URL:** <https://forum.knime.com/t/execution-of-knime-workflow-in-batch-mode/31149>\
**Category:** KNIME Analytics Platform\
**Tags:** batch\
**Created:** [March 3, 2021, 3:52pm UTC](https://forum.knime.com/t/execution-of-knime-workflow-in-batch-mode/31149 "2021-03-03T15:52:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmcguire](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/50afbb/32.png) [@kmcguire](https://forum.knime.com/u/kmcguire)\
**Post date:** [March 3, 2021, 3:52pm UTC](https://forum.knime.com/t/execution-of-knime-workflow-in-batch-mode/31149/1 "2021-03-03T15:52:18Z")

</div>

Hi everyone,

This is my first post on the forum, I wanted to revive an old post

> [@Execution of Knime Workflow in Batch Mode](https://forum.knime.com/t/execution-of-knime-workflow-in-batch-mode/10946/3):
>
> On the surface, running KNIME in batch looks relatively easy and it is. But its all the small details that can make it complex. The trick is to create a generic, highly parameterized batch job that can run any KNIME workflow. I’ve attached two sample Powershell scripts that will run 1 to many KNIME workflows. When one fails, execution will halt (that behavior can be changed). In my example, I included execution of workflows that have variables in them like Database server URL which are set a…

@ScottMcLeodPSLGroup wrote an awesome script for running multiple workflows but I am struggling to get it working. I was hoping to get some help as I need to schedule things to provide proof of concept to get my company to get Knime Server. Script is on the original post.

---

<div class="post-metadata">

**Author:** ![ScottF](https://forum-cdn.knime.com/user_avatar/forum.knime.com/scottf/32/61316_2.png) [@ScottF](https://forum.knime.com/u/ScottF)\
**Post date:** [March 3, 2021, 5:08pm UTC](https://forum.knime.com/t/execution-of-knime-workflow-in-batch-mode/31149/2 "2021-03-03T17:08:10Z")

</div>

Hi @kmcguire and welcome to the forum.

There’s no need to use the batch processing in KNIME AP to demo scheduling capabilities of the KNIME Server. The Server has scheduling built right into its point-and-click interface and is very easy to use.

We’re happy to set up a free 30-day trial of the KNIME Server for you to use in your POC. If that’s something that you’d like to do, respond here and I’ll get you connected with someone who can help (or if you prefer, you can send a short note to [sales@knime.com](mailto:sales@knime.com) directly).

Cheers!

---

<div class="post-metadata">

**Author:** ![kmcguire](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/50afbb/32.png) [@kmcguire](https://forum.knime.com/u/kmcguire)\
**Post date:** [March 3, 2021, 6:17pm UTC](https://forum.knime.com/t/execution-of-knime-workflow-in-batch-mode/31149/3 "2021-03-03T18:17:38Z")

</div>

Thanks Scott, But I think this is going to be a longer process that 30 days. Would love to get in touch with @ScottMcLeodPSLGroup to see if he can help me see where i am going wrong… In the mean time I will reach out to the sales team!

---

<div class="post-metadata">

**Author:** ![kmcguire](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/50afbb/32.png) [@kmcguire](https://forum.knime.com/u/kmcguire)\
**Post date:** [March 3, 2021, 6:54pm UTC](https://forum.knime.com/t/execution-of-knime-workflow-in-batch-mode/31149/4 "2021-03-03T18:54:16Z")

</div>

here is the error i am getting

Method invocation failed because [System.Management.Automation.PathInfo] does not contain a method named ‘op\_Addition’.  
At C:\KnimeBatchJobs\Knime\_Batch\_Job.ps1:172 char:1

- $ThisScript = $PWD+""+$MyInvocation.MyCommand.Name

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [September 2, 2021, 6:54am UTC](https://forum.knime.com/t/execution-of-knime-workflow-in-batch-mode/31149/5 "2021-09-02T06:54:21Z")

</div>

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