How to Get Additional Error Logs for Batch Scripts
This article demonstrates how to implement a standard logging tool for Batch Scripts when run using Alteryx workflows, either via Run Command Tool or the Events section of Workflow Configuration Settings. This is primarily for troubleshooting purposes and can be removed if/when the script is operating as intended.
Prerequisites
- Alteryx Designer
- .bat file
Procedure
- Enter the path to the .bat file in the Command field as usual
- Enter " > testlog.txt 2> testerrors.txt" in the Command Arguments field
- Locate testlog.txt and/or testerrors.txt in your machine's default temp directory by entering %Temp% into File Explorer
<img src="https://community.alteryx.com/t5/image/serverpage/image-id/239816iF42AE1F39AC70ECA/image-size/origin..."/>
<img src="https://community.alteryx.com/t5/image/serverpage/image-id/239817i6996FCB0E323C135/image-size/origin..."/> Additional Resources