# Duplicate identifiers

**URL:** <https://forum.liquibase.org/t/duplicate-identifiers/480>\
**Category:** General Discussion\
**Created:** [March 15, 2010, 11:33am UTC](https://forum.liquibase.org/t/duplicate-identifiers/480 "2010-03-15T11:33:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nmrrsc](https://avatars.discourse-cdn.com/v4/letter/n/e5b9ba/32.png) [@nmrrsc](https://forum.liquibase.org/u/nmrrsc)\
**Post date:** [March 15, 2010, 11:33am UTC](https://forum.liquibase.org/t/duplicate-identifiers/480/1 "2010-03-15T11:33:00Z")

</div>

Hi,

I’m trying to do a fresh install of my project on a clean Oracle database, using the trunk’s code, and it keeps telling me that found duplicate changesets :

INFO 15-03-2010 11:18:liquibase: Could not set remarks reporting on OracleDatabase: liquibase.database.JdbcCon nection.setRemarksReporting(boolean) DEBUG 15-03-2010 11:18:liquibase: Lock Database INFO 15-03-2010 11:18:liquibase: Successfully acquired change log lock DEBUG 15-03-2010 11:18:liquibase: includeAll for install/tab/ DEBUG 15-03-2010 11:18:liquibase: Using file opener for includeAll: liquibase.resource.CompositeResourceAccess or DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\avaliador.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\avaliador\_hab\_academic a.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\avaliador\_sit\_profissi onal.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\candidatura\_acreditaca o.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\candidatura\_adopcao.xm l DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\candidatura\_avaliacao. xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\candidatura\_processo.x ml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\comissao\_apreciacao.xm l DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\documento\_avaliador.xm l DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\documento\_candidatura. xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\documento\_manual.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\editora.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\entidade\_avaliadora.xm l DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\equipa\_avaliador.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\equipa\_cientifico\_peda gogica.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\historico\_estado\_candi datura.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\historico\_instancia\_gr elha\_avaliacao.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\instancia\_grelha\_avali acao.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\instancia\_item\_grelha. xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\lista\_valor.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\manual\_adopcao.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\manual\_escolar.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\membro\_comissao\_apreci acao.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\objecto.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\operacao.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\organizacao.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\perfil.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\perfil\_permissao.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\permissao.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\processo.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\processo\_acreditacao.x ml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\processo\_adopcao.xml DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\processo\_avaliacao.xml

DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\registo\_auditoria.xml  
DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\template\_grelha\_avalia  
cao.xml  
DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\template\_item\_avaliaca  
o.xml  
DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\tipo\_lista\_valor.xml  
DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab\volume\_manual.xml  
DEBUG 15-03-2010 11:18:liquibase: includeAll using path D:\temp\liqui\trunk\install\tab  
DEBUG 15-03-2010 11:18:liquibase: D:\temp\liqui\trunk\install\tab is a directory  
INFO 15-03-2010 11:18:liquibase: Reading from DATABASECHANGELOG  
DEBUG 15-03-2010 11:18:liquibase: Release Database Lock  
INFO 15-03-2010 11:18:liquibase: Successfully released change log lock

liquibase.exception.ValidationFailedException: Validation Failed:  
&nbsp; &nbsp; 42 change sets had duplicate identifiers  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/template\_item\_avaliacao.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/instancia\_item\_grelha.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/processo\_avaliacao.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/objecto.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/membro\_comissao\_apreciacao.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/tipo\_lista\_valor.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/organizacao.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/editora.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/permissao.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/candidatura\_acreditacao.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/candidatura\_adopcao.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/volume\_manual.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/perfil\_permissao.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/documento\_candidatura.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/documento\_manual.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/perfil\_permissao.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/entidade\_avaliadora.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/comissao\_apreciacao.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/perfil\_permissao.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/processo\_adopcao.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/historico\_instancia\_grelha\_avaliacao.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/manual\_escolar.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/processo.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/perfil.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/candidatura\_processo.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/manual\_adopcao.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/avaliador.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/instancia\_grelha\_avaliacao.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/avaliador\_hab\_academica.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/candidatura\_avaliacao.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/equipa\_cientifico\_pedagogica.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/operacao.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/documento\_avaliador.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/equipa\_avaliador.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/equipa\_avaliador.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/avaliador\_sit\_profissional.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/historico\_estado\_candidatura.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/lista\_valor.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/template\_grelha\_avaliacao.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/equipa\_avaliador.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/processo\_acreditacao.xml::1::nuno.carvalho  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; install/tab/registo\_auditoria.xml::1::nuno.carvalho

&nbsp; &nbsp; &nbsp; &nbsp; at liquibase.changelog.DatabaseChangeLog.validate(DatabaseChangeLog.java:132)  
&nbsp; &nbsp; &nbsp; &nbsp; at liquibase.Liquibase.update(Liquibase.java:97)  
&nbsp; &nbsp; &nbsp; &nbsp; at liquibase.integration.commandline.Main.doMigration(Main.java:665)  
&nbsp; &nbsp; &nbsp; &nbsp; at liquibase.integration.commandline.Main.main(Main.java:105)

As you can see all changeset string are different. Here is my changelog file :

\<?xml version="1.0" encoding="UTF-8" standalone="no"?\> http://www.liquibase.org/xml/ns/dbchangelog" &nbsp; &nbsp; &nbsp; &nbsp; xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance"](http://www.w3.org/2001/XMLSchema-instance%22) &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-2.0.xsd"\>](http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd%22>) &nbsp; &nbsp; 

The liquibase.properties :

driver: oracle.jdbc.OracleDriver classpath: D:/Develop/liquibase-2.0-rc2-SNAPSHOT-bin/lib/ojdbc6.jar logLevel: debug url: jdbc:oracle:thin:@host:1521:sid username: user password: password

Forgot to mention that I’m on Windows 7 64 bit with jdk1.6.0\_18 32 bit.

Thanks

---

<div class="post-metadata">

**Author:** ![nmrrsc](https://avatars.discourse-cdn.com/v4/letter/n/e5b9ba/32.png) [@nmrrsc](https://forum.liquibase.org/u/nmrrsc)\
**Post date:** [March 15, 2010, 11:33am UTC](https://forum.liquibase.org/t/duplicate-identifiers/480/2 "2010-03-15T11:33:00Z")

</div>

I found that without the _relativeToChangelogFile_ attribute the changesets are included twice in the changeset list that will run.

When doing resource enumeration for the given path, XMLChangeLogParser also includes the path as a resource so it will read all children (\*.xml and \*.sql) again.

---

<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:** [March 15, 2010, 11:33am UTC](https://forum.liquibase.org/t/duplicate-identifiers/480/3 "2010-03-15T11:33:00Z")

</div>

I’ll have to look into it more.&nbsp; I created [http://liquibase.jira.com/browse/CORE-571](http://liquibase.jira.com/browse/CORE-571) to track it

Nathan
