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
Solved! Go to Solution.
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.
I've wired in Dummy Input using Text Input control, but still getting error 'Either an Output connection or Input connection is required'.
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.
thx, works now
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.