# onFail attribute for preConditions only accept "HALT" and "WARN"

**URL:** <https://forum.liquibase.org/t/onfail-attribute-for-preconditions-only-accept-halt-and-warn/2557>\
**Category:** Liquibase Development\
**Created:** [May 7, 2012, 10:21pm UTC](https://forum.liquibase.org/t/onfail-attribute-for-preconditions-only-accept-halt-and-warn/2557 "2012-05-07T22:21:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://forum.liquibase.org/u/Guest)\
**Post date:** [May 7, 2012, 10:21pm UTC](https://forum.liquibase.org/t/onfail-attribute-for-preconditions-only-accept-halt-and-warn/2557/1 "2012-05-07T22:21:00Z")

</div>

Addition: This only affects preConditions on changelog-level.  
On changeset-level, CONTINUE works correctly.

---

<div class="post-metadata">

**Author:** ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://forum.liquibase.org/u/Guest)\
**Post date:** [May 7, 2012, 10:21pm UTC](https://forum.liquibase.org/t/onfail-attribute-for-preconditions-only-accept-halt-and-warn/2557/2 "2012-05-07T22:21:00Z")

</div>

Hello.  
  
I wanted to use the preConditions feature. Manual says there can be 4 values for onFail and onError attributes.  
I get a SaxParserException which tells me that only “HALT” or “WARN” can be used.  
  
Either it’s an error in Liquibase (using 2.0.4, but 2.0.5 has the same issue) or the manual is not correct.   
  
Just reporting…  
  
Greets,  
Sven

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [May 7, 2012, 10:21pm UTC](https://forum.liquibase.org/t/onfail-attribute-for-preconditions-only-accept-halt-and-warn/2557/3 "2012-05-07T22:21:00Z")

</div>

That is because CONTINUE only makes sense in the context of a changeSet. For changeLog level preconditions, you can really only warn or stop execution.

I’ll check the documentation, thanks for the pointer.

Nathan

---

<div class="post-metadata">

**Author:** ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://forum.liquibase.org/u/Guest)\
**Post date:** [May 7, 2012, 10:21pm UTC](https://forum.liquibase.org/t/onfail-attribute-for-preconditions-only-accept-halt-and-warn/2557/4 "2012-05-07T22:21:00Z")

</div>

Hi.  
  
Well, it could have been possible to skip the changeLog with “continue” and either terminate the process (if it was the only changeLog/root level changeLog) or to continue if the changeLog in question has only been included from another changeLog with the directive.  
  
Just a thought…  
  
Sven
