Issue Running a Supporting Task via Batch File Cmd - "Warning: Process exited with non zero exit code: 1"
Article Number: 000002613 | Last Modified: 2018/06/12
Trying to execute a batch file from QlikView publisher task.
the BAT file can be executed without any error directly in Window, for example by double-clicking .BAT in Windows File Explorer.
QlikView Publisher task fails with error or warning message "Process exited with exit code: 1" when the .BAT file is executed.
Information: Executing cmd.exe /c C:\myfile.bat
Information: Executing commandline: "cmd.exe /c C:\myfile.bat" in folder "C:\Windows\system32".
Warning: Process exited with non zero exit code: 1
Information: Process exited with exit code: 1
Warning: The task "MyTask" finished with warnings. WarningCount=1
The issue is caused by the command line in the supporting task not having quotes around the command line.
This line will stop at the 01 due to the space.
cmd.exe /c C:\myfile.bat
Encapsulate the command line in quotes for the Supporting task:
cmd.exe /c "C:\myfile.bat"