🧡 Skip to main content🔍 Skip to search
Matthew AdamsBy Matthew Adams 🕣 Updated on January 3, 2024 at 8:30 am
YouTube video · Watch folder & automatically email files

Automation Workshop monitors files and folders on local & network or remote servers like Amazon S3 and SFTP, and executes Actions when files or folders are created, modified, or deleted according to defined conditions · Getting started · See more Automation videos

Let's debug… the codes

Automation Workshop is a versatile tool that can handle complex automation scenarios including launching external apps therefore advanced error handling and debug capability is an essential part of process automation. Some Run Actions may complete with errorlevels or exit codes…

…that indicate the termination status of executed Command or Application.

Exit codes

Program exit codes allow determining the specific reason for command's or application's termination. Although Automation Workshop shows codes in decimal format, they are also referred to as hexadecimal or negative decimal values.

Decisiveness on program exit codes

Code 0

Program successfully completed.

Code 1

Incorrect function.
Indicates that Action has attempted to execute non-recognized command in Windows command prompt cmd.exe.

Code 2

The system cannot find the file specified.
Indicates that the file can not be found in the specified location. Most likely the folder structure / path is configured correctly, however the file name is either misspelled or file is missing.

Code 3

The system cannot find the path specified.
Indicates that the specified path can not be found.

Code 4

The system cannot open the file.
A path to the file is specified correctly, however, the user credentials do not contain necessary permissions to the specified resource. Use Run As feature to grant access to a local file or network path.

Code 5

Access is denied.
Indicates that user has no access right to specified resource.

Code 259

0x103 · 103

The operation that was requested is pending completion. The process is still running.
The operation pending exit code 259 typically indicates that an application is still running and has not yet completed. However, custom applications may return any exit code, including the 259, as a custom termination status.

If your workflow relies on checking the running status of an application, and the application terminates with the code 259, it may result in an infinite loop waiting for a different exit code.

Code 9009

0x2331 · 2331 · 9,009

Program is not recognized as an internal or external command, operable program or batch file.
Indicates that command, application name or path has been misspelled when configuring the Actions—Run CMD Command or Start App.

Code 2147942545

-2147024751 · 0x80070091 · 80070091 · 2,147,942,545

The directory is not empty.
System attempted to delete a folder that was supposed to be empty but it isn't. Extremely rarely, the Remove Folder Action may experience this error when deleting folders within a path of about 32,000 characters deep. In a few seconds/minutes Windows will enumerate files, and the problem will vanish upon retrying to remove the folder again.

Code 3221225477

-1073741819 · 0xC0000005 · C0000005 · 3,221,225,477

Access violation.
Indicates that the executed program has terminated abnormally or crashed.

Code 3221225495

-1073741801 · 0xC0000017 · C0000017 · 3,221,225,495

Not enough virtual memory is available.
Indicates that Windows has run out of memory. Observe Automation Workshop memory usage via the Operations Manager.

Code 3221225786

-1073741510 · 0xC000013A · C000013A · 3,221,225,786

The application terminated as a result of a CTRL+C.
Indicates that the application has been terminated either by user's keyboard input CTRL+C, or CTRL+Break, or closing command prompt window.

Code 3221225794

-1073741502 · 0xC0000142 · C0000142 · 3,221,225,794

The application failed to initialize properly.
Usually for interactive apps a user with administrator rights is required. Moreover, the user must log on at least once to allow Windows to prepare the Windows Station and Desktop.

This error also may indicate that the application has been launched on a Desktop to which the current user has no access rights. Another less possible cause is that either gdi32.dll or user32.dll has failed to initialize.

Code 3221226505

-1073740791 · 0xC0000409 · C0000409 · 3,221,226,505

Stack buffer overflow / overrun.
Error can indicate a bug in the executed software that causes stack overflow, leading to abnormal termination of the software.

Code 3221225725

-1073741571 · 0xC00000FD · C00000FD · 3,221,225,725

Stack overflow / exhaustion.
Error can indicate a bug in the executed software that causes stack overflow, leading to abnormal termination of the software.

Code 3762507597

-532459699 · 0xE0434F4D · E0434F4D · 3,762,507,597

Unhandled exception in .NET application.
More details may be available in Windows Event log.

Code X

User-defined custom exit code.
Applications can return any predefined and custom codes, if they are programmed to do so. Additionally, Automation Workshop allows terminating apps directly from automated workflows providing any exit code. Valid value range: 0 through 4,294,967,295. The Terminate App Action supports a very flexible syntax for exit codes, for example:

  • 3221225786 · a regular integer that is popular in batch programming.
  • 3,221,225,786 · a number where thousands are comma-separated for easier readability.
  • 0xC000013A · hexadecimal exit code, commonly used in Windows applications and log files.

Help more?

For some error codes, Windows may provide a more friendly error message. NET HELPMSG displays information about Windows network messages (such as errors, warnings, and alerts). When you type NET HELPMSG and the error code (for example, net helpmsg 2182), Windows tells you more about the error code and may suggest actions to solve the issue.

net helpmsg 8

Not enough memory resources are available to process this command.

This will only work for Windows API Win32 error codes that originate from Microsoft Windows. If net help does not return a valid result, it can mean that the problem originates in external processes such as executed application or command syntax.

Save your time by automating!

Real users are utilizing Automation Workshop to automate tasks in Windows PCs and Windows Servers. It is the best Windows automation software and has been in the market since 2008. It is evolving rapidly to keep up with the constantly changing IT landscape.

Chuck W., quote about Automation Workshop
Automation Workshop is an awesome piece of software. It will save us thousands of man hours this year alone!—Chuck W.

Unleash productivity…

Automation videos · explore our extensive collection of video tutorials dedicated to guiding you through the creation of your own automation workflows. See a quick sneak-peek of our video library, offering you a glimpse into the extensive range of automation topics covered…

YouTube video · Automate file transfer in Windows
Automate file transfer in Windows
YouTube video · Auto-capture enclosed text
Auto-capture enclosed text
YouTube video · Synchronize SFTP server files & documents
Synchronize SFTP server files & documents
YouTube video · Automatic CPU pinning in Windows
Automatic CPU pinning in Windows
YouTube video · Automate SFTP uploads on Windows
Automate SFTP uploads on Windows
YouTube video · Detect 1 and email 3 files
Detect 1 and email 3 files
Great success!

More ways to Run…

Discover

Automation Workshop includes many more awesome Triggers and numerous Actions to aid you to automate any repetitive computer or business task by providing state-of-the-art GUI tools.

Automated Trigger · FTP Watcher
FTP Watcher
Automate Action · Send Email
Send Email

Seamless automation. Take a quick 90-second journey!

Just ask…

If you have any questions, please do not hesitate to contact our support team.