# Attribute 'onUpdateSQL' is not allowed to appear in element 'preConditions'

**URL:** <https://forum.liquibase.org/t/attribute-onupdatesql-is-not-allowed-to-appear-in-element-preconditions/3105>\
**Category:** General Discussion\
**Created:** [September 3, 2014, 7:13pm UTC](https://forum.liquibase.org/t/attribute-onupdatesql-is-not-allowed-to-appear-in-element-preconditions/3105 "2014-09-03T19:13:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bsd386](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bsd386](https://forum.liquibase.org/u/bsd386)\
**Post date:** [September 3, 2014, 7:13pm UTC](https://forum.liquibase.org/t/attribute-onupdatesql-is-not-allowed-to-appear-in-element-preconditions/3105/1 "2014-09-03T19:13:00Z")

</div>

Hi, I have the following changeLog.xml:

1. \<?xml version="1.0" encoding="UTF-8"?\> 
2. \<databaseChangeLog 
3. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns="[http://www.liquibase.org/xml/ns/dbchangelog"](http://www.liquibase.org/xml/ns/dbchangelog%22) 
4. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance"](http://www.w3.org/2001/XMLSchema-instance%22) 
5. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:ext="[http://www.liquibase.org/xml/ns/dbchangelog-ext"](http://www.liquibase.org/xml/ns/dbchangelog-ext%22) 
6. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xsi:schemaLocation="[http://www.liquibase.org/xml/ns/dbchangelog](http://www.liquibase.org/xml/ns/dbchangelog) [http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd](http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd) 
7. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [http://www.liquibase.org/xml/ns/dbchangelog-ext](http://www.liquibase.org/xml/ns/dbchangelog-ext) [http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd"\>](http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd%22>) 
8. &nbsp;&nbsp;&nbsp; 
9. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
10. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
11. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
12. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
13. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
14. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
15. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
16. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
17. &nbsp;&nbsp;&nbsp; 
18. 

This is what happens when I run an updateSQL on it:

$ ./liquibase updateSQL  
Unexpected error running Liquibase: cvc-complex-type.3.2.2: Attribute ‘onUpdateSQL’ is not allowed to appear in element ‘preConditions’.

What’s wrong?

---

<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:** [September 3, 2014, 7:13pm UTC](https://forum.liquibase.org/t/attribute-onupdatesql-is-not-allowed-to-appear-in-element-preconditions/3105/2 "2014-09-03T19:13:00Z")

</div>

The tag is onSqlOutput= FAIL or TEST or IGNORE

Nathan
