# Cvc-complex-type.3.2.2: Attribute 'labels' is not allowed to appear in element 'changeSet'

**URL:** <https://forum.liquibase.org/t/cvc-complex-type-3-2-2-attribute-labels-is-not-allowed-to-appear-in-element-changeset/7543>\
**Category:** General Discussion\
**Created:** [November 18, 2022, 7:28am UTC](https://forum.liquibase.org/t/cvc-complex-type-3-2-2-attribute-labels-is-not-allowed-to-appear-in-element-changeset/7543 "2022-11-18T07:28:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgpua](https://avatars.discourse-cdn.com/v4/letter/j/9de053/32.png) [@jgpua](https://forum.liquibase.org/u/jgpua)\
**Post date:** [November 18, 2022, 7:28am UTC](https://forum.liquibase.org/t/cvc-complex-type-3-2-2-attribute-labels-is-not-allowed-to-appear-in-element-changeset/7543/1 "2022-11-18T07:28:21Z")

</div>

Hi guys!

I am having issues with labes. I am on latest version 4.17.2 from docker, but also tryed 4.16 just for test.

My changeset looks like this:

```auto
<changeSet author="xmlGenerator" id="View.017" labels="test" runOnChange="true" context="pre-production">
<sqlFile dbms="mssql" endDelimiter="\nGO" path="./Views/dbo.Invoices_test.View.sql" relativeToChangelogFile="true" splitStatements="true"/>
<comment>#CURRENT_USER</comment>
<rollback/>
</changeSet>

```

and probably is a stupid syntax fault, but after hours testing it I can’t figure out what is going on. I am checking following example from [labels](https://docs.liquibase.com/concepts/changelogs/attributes/labels.html) :

```auto
<changeSet author="Liquibase User" id="1" labels="1.0" objectQuotingStrategy="QUOTE_ALL_OBJECTS">
       <createTable schemaName="proschema" tableName="primary_table">
       <column name="name" type="CHAR(20)"/>
       </createTable>
</changeSet>

```

So I don’t understand why the error is:

```auto
cvc-complex-type.3.2.2: Attribute 'labels' is not allowed to appear in element 'changeSet'.

```

Hope you could help me, thank you very much

---

<div class="post-metadata">

**Author:** ![jgpua](https://avatars.discourse-cdn.com/v4/letter/j/9de053/32.png) [@jgpua](https://forum.liquibase.org/u/jgpua)\
**Post date:** [November 22, 2022, 7:40am UTC](https://forum.liquibase.org/t/cvc-complex-type-3-2-2-attribute-labels-is-not-allowed-to-appear-in-element-changeset/7543/2 "2022-11-22T07:40:58Z")

</div>

I will answer to myself

I simply was missing xml headers, so liquibase didn’t understand the topology:

```auto
<databaseChangeLog 
	xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
	xmlns:pro="http://www.liquibase.org/xml/ns/pro"
	xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
		http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd
		http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
		http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-latest.xsd">   
	<preConditions onFail="HALT" onFailMessage="This changelog needs to run under the liquibase user account">
		<runningAs username="liquibase"/>
	</preConditions>
	<include file="./v2.0/base/db.changelog_base.json" />
...

```
