# Batch file action: Errorlevel is 1, but action does not fail

**URL:** https://www.finalbuilder.com/forums/t/batch-file-action-errorlevel-is-1-but-action-does-not-fail/2066
**Category:** Discussion
**Created:** [January 4, 2013, 11:58am UTC](https://www.finalbuilder.com/forums/t/batch-file-action-errorlevel-is-1-but-action-does-not-fail/2066 "2013-01-04T11:58:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rafael](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/4da419/32.png) [@rafael](https://www.finalbuilder.com/forums/u/rafael)
#### Post date: [January 4, 2013, 11:58am UTC](https://www.finalbuilder.com/forums/t/batch-file-action-errorlevel-is-1-but-action-does-not-fail/2066/1 "2013-01-04T11:58:37Z")

</div>

I am stumped!

I have a batch file that when it fails, returns an errorlevel of 1

In the action that calls it, I have the default option of "program exit code must be equal to 0"

But it does not fail.

What do I do to chase down?

Thanks!

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 7, 2013, 12:40pm UTC](https://www.finalbuilder.com/forums/t/batch-file-action-errorlevel-is-1-but-action-does-not-fail/2066/2 "2013-01-07T12:40:08Z")

</div>

You need to use the Run Dos command action, the errorlevel is a function of the dos shell.
