# Invalid content was found starting with element 'preConditions'

**URL:** <https://forum.liquibase.org/t/invalid-content-was-found-starting-with-element-preconditions/2352>\
**Category:** General Discussion\
**Created:** [August 5, 2013, 3:17pm UTC](https://forum.liquibase.org/t/invalid-content-was-found-starting-with-element-preconditions/2352 "2013-08-05T15:17:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmineMAZOUNI](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@AmineMAZOUNI](https://forum.liquibase.org/u/AmineMAZOUNI)\
**Post date:** [August 5, 2013, 3:17pm UTC](https://forum.liquibase.org/t/invalid-content-was-found-starting-with-element-preconditions/2352/1 "2013-08-05T15:17:00Z")

</div>

Hello,

I have a problem with liquibase-core-2.0.5

here is the changelog :&nbsp;

_\<?xml version="1.0" encoding="UTF-8"?\>_

_--_

_-_

_SELECT COUNT(\*) FROM T\_FRANCHISE Where FRA\_IDENT=1238431.0_

_Checking if corresponding T\_FRANCHISE exists_

_-\<column value=“TEST” name=“FRA\_COMMENTAIRES”/ FRA\_IDENT=1238431.0_

_-_

_SELECT COUNT(\*) FROM T\_LIB\_LANGUE Where TLLG\_IDENT=1.30468702E8_

_Checking if corresponding T\_LIB\_LANGUE exists_

_-_\<span:modifySql}’ is expected.

It work where there is only one precondition. But not where there are two like in this example.

Can you help me please?

---

<div class="post-metadata">

**Author:** ![nessumo](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@nessumo](https://forum.liquibase.org/u/nessumo)\
**Post date:** [August 5, 2013, 3:17pm UTC](https://forum.liquibase.org/t/invalid-content-was-found-starting-with-element-preconditions/2352/2 "2013-08-05T15:17:00Z")

</div>

AFAIK there can be only one preConditions tag at the beggining of the changeSet. Your scenario is not supported. Workaround would be to divide this into two changeSets.

---

<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:** [August 5, 2013, 3:17pm UTC](https://forum.liquibase.org/t/invalid-content-was-found-starting-with-element-preconditions/2352/3 "2013-08-05T15:17:00Z")

</div>

Thank you for the answer.

But if I want to use three changeSets for :&nbsp;

&nbsp; &nbsp; &nbsp; - Insert line1.

&nbsp; &nbsp; &nbsp; - Update line 1.

&nbsp; &nbsp; &nbsp; - Delete line1.

There will be two preconditions, the first in tne update changeSet, and the second in the Delete changeSet. And if I execute these changeSets in a MasterChangeSet, I saw in another topic of this forum that it’s gonna first look for preconditions in all the changeSets, then execute the first changeSet.

My problème is : I want to execute the first changeSet before the precondition in the second one.

Is there anything I can do?

---

<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:** [August 5, 2013, 3:17pm UTC](https://forum.liquibase.org/t/invalid-content-was-found-starting-with-element-preconditions/2352/4 "2013-08-05T15:17:00Z")

</div>

You just need to break it up into two separate changeSets rather than just one.

Nathan
