KB Article #178199

Dumpenv execution fails on Windows OS

The dumpenv agent is used for debugging purposes to print the internal session and environment variables at a particular point in the execution of the Transaction Manager rules. It is not enabled by default and is not needed for the normal server operations.


In some cases, the execution of the dumpenv agent could fail on Windows platform. When this happens, the following errors are observed:


Failed to execute external agent


Cannot run program "c:\Axway\SecureTransport\STServer\brules\..\bin\agents\dumpenv": 
CreateProcess error=193, %1 is not a valid Win32 application


Resolution

To resolve the above errors, follow the steps below:


  1. Make sure you have the dumpenv script in the <FILEDRIVEHOME>/bin folder
  2. Copy one of the existing *.com files from the <FILEDRIVEHOME>/bin (e.g. start_all.com) and rename it to dumpenv.com
  3. Move the newly created dumpenv.com to <FILEDRIVEHOME>/bin/agents
  4. When adding an external script execution, the command line should be dumpenv.com rather than dumpenv