Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

RunCmd requires Input or Output connection

gillsuki
6 - Meteoroid

Hi

I have a RunCmd which executes a powershell script.

It looks like the RunCmd requires me to configure at least an Input or Output connection.

In my case I don't have any input or output I would like to pipe in/out of my powershell script.

 

Is there a Dummy tool available which I can use as input/ouput into the RunCmd or even better to relax the requirement to have input/output connectors defined ?

 

regards

Suki

 

 

5 REPLIES 5
dataguyW
11 - Bolide

I use the Text Input Tool and simply create a dummy column and 1 row and default it to whatever you like.  That gets you your input.  The output is there but doesn't need something connected.  That should work.

gillsuk
6 - Meteoroid

I've wired in Dummy Input using Text Input control, but still getting error 'Either an Output connection or Input connection is required'.

 

 

gillsuk_0-1755182920231.png

 

apathetichell
20 - Arcturus

hey @gillsuki --- I think @dataguyW  is pretty clear --- make a dummy file. You can call it 'dummy.csv' --- create it in your write_source output. you can have a formula tool  write the value 'dummy'

 

Note --- this is usually used to create/parameterize your shell file (in your case the .ps1 file) --- so the normal process is to create that file with the write_source output ---> and then run via the command.

gillsuki
6 - Meteoroid

thx, works now

WirkKarl
8 - Asteroid

If you don’t have actual data to pass in or out, you can just use a small dummy input like a single empty row from the Text Input tool, then ignore it inside your script. Alternatively, you can connect a Dummy tool like “Create Samples” or “Message” just to satisfy the connection requirement. Unfortunately, RunCmd currently doesn’t allow being fully standalone without at least one connection, so using a placeholder input/output is usually the workaround.

Labels
Top Solution Authors