# createProcedure attributes error

**URL:** <https://forum.liquibase.org/t/createprocedure-attributes-error/3600>\
**Category:** General Discussion\
**Created:** [March 1, 2018, 12:27am UTC](https://forum.liquibase.org/t/createprocedure-attributes-error/3600 "2018-03-01T00:27:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cruepprich](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@cruepprich](https://forum.liquibase.org/u/cruepprich)\
**Post date:** [March 1, 2018, 12:27am UTC](https://forum.liquibase.org/t/createprocedure-attributes-error/3600/1 "2018-03-01T00:27:00Z")

</div>

Hi all,

I’m a Liquibase newbie and am experimenting with using Liquibase with Oracle.

I use&nbsp;Liquibase Version: 3.5.4

I’m trying to use the createProcedure&nbsp;tag to create a PL/SQL procedure. I referenced the example from the [documentation](http://www.liquibase.org/documentation/changes/create_procedure.html). However, the attributes for that tag cause errors:

Changelog XML:

  

  

  

$ ./liquibase update

Unexpected error running Liquibase: Error parsing line 8 column 45 of …/src/plsql/prc.xml: cvc-complex-type.3.2.2: **Attribute ‘comments’ is not allowed to appear in element ‘createProcedure’.**

  

This happens to any attribute I add to the tag.

  

Am I doing something wrong?

  

Thanks!

Christoph

---

<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 1, 2018, 12:27am UTC](https://forum.liquibase.org/t/createprocedure-attributes-error/3600/2 "2018-03-01T00:27:00Z")

</div>

It looks like your XSD is referencing version 3.0. It should be 3.5. I’ll take a look at the documentation

Thanks,  
Nathan

---

<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 1, 2018, 12:27am UTC](https://forum.liquibase.org/t/createprocedure-attributes-error/3600/3 "2018-03-01T00:27:00Z")

</div>

Looking at the XSD, it looks like it needs to be a nested tag. Like:

1. &nbsp; &nbsp;

---

<div class="post-metadata">

**Author:** ![cruepprich](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@cruepprich](https://forum.liquibase.org/u/cruepprich)\
**Post date:** [March 1, 2018, 12:27am UTC](https://forum.liquibase.org/t/createprocedure-attributes-error/3600/4 "2018-03-01T00:27:00Z")

</div>

Thanks Nathan. I changed the XSD to 3.5, but got the same error.

---

<div class="post-metadata">

**Author:** ![cruepprich](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@cruepprich](https://forum.liquibase.org/u/cruepprich)\
**Post date:** [March 1, 2018, 12:27am UTC](https://forum.liquibase.org/t/createprocedure-attributes-error/3600/5 "2018-03-01T00:27:00Z")

</div>

I tried your suggestion. The procedure got created, but the entry in DATABASECHANGELOG did not show the comment. Also, the rollback failed. Shouldn’t the createProcedure&nbsp;automatically suggest the drop command on rollback?

  

Unexpected error running Liquibase: No inverse to liquibase.change.core.CreateProcedureChange created

  

  

Thanks,

C

---

<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 1, 2018, 12:27am UTC](https://forum.liquibase.org/t/createprocedure-attributes-error/3600/6 "2018-03-01T00:27:00Z")

</div>

Procedure syntax varies enough between databases that createProcedure is at the edge of what liquibase tries to support. It’s basically just a tag passing whatever you have in it to the database directly. We don’t try to generate a rollback statement because I’m not sure that a simple “drop” would necessarily be right since we don’t know what you’re doing in the SQL.

Nathan

---

<div class="post-metadata">

**Author:** ![cruepprich](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@cruepprich](https://forum.liquibase.org/u/cruepprich)\
**Post date:** [March 1, 2018, 12:27am UTC](https://forum.liquibase.org/t/createprocedure-attributes-error/3600/7 "2018-03-01T00:27:00Z")

</div>

Got it. Thanks!
