Error: “Error: Designer x64: The Designer x64 reported: Error running Event #1: The external program "C:\Program Files\Alteryx\bin\AlteryxEngineCmd.exe" returned an error code: 2: The system could not find the environment option that was entered. (203)”
Environment Details
When using a Run Command Tool or a workflow run command event, this error is returned. Oftentimes, there are typos, spaces, or extra characters in the command argument.
Error: Designer x64: The Designer x64 reported: Error running Event #1: The external program "C:\Program Files\Alteryx\bin\AlteryxEngineCmd.exe" returned an error code: 2: The system could not find the environment option that was entered. (203)
- Alteryx Designer
- Run Command Tool
- Events
Cause
The "system could not find the environment option that was entered" error can be caused by a mismatch in the file name, extra characters, typos, or spaces in the command argument. To test, the command can be entered into Command Prompt and ran as an administrator. If the command fails outside of Designer, the issue lies with the command syntax or spelling.
Resolution
Solution
- Check the Command Arguments input in the Run Command configuration. Do the files names match exactly? Are there any typos? If there are spaces in the Command Argument like the image below, proceed to step 2
image.png
- If there are spaces in the Command Argument, enclose the entire argument in double quotes ("):
image.pngIf the argument is not surrounded by quotations, only the first word will be ran as the argument. Adding quotes ensures the whole argument is ran.
Additional Resources