# sqlFile cannot find file

**URL:** <https://forum.liquibase.org/t/sqlfile-cannot-find-file/561>\
**Category:** General Discussion\
**Created:** [June 22, 2010, 4:36pm UTC](https://forum.liquibase.org/t/sqlfile-cannot-find-file/561 "2010-06-22T16:36:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben\_lb](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@ben\_lb](https://forum.liquibase.org/u/ben_lb)\
**Post date:** [June 22, 2010, 4:36pm UTC](https://forum.liquibase.org/t/sqlfile-cannot-find-file/561/1 "2010-06-22T16:36:00Z")

</div>

Hi,

I’m having trouble with the sqlFile element.

My dir structure is as follows:

./install.bat ./install.xml ./install/pkg/schema.xml ./install/pkg/mssql/schema.sql

My schema.xml has the following changeSet:

However, when I run my install.bat from the root of the tree, liquibase complains:

LiquiBase Update Failed: -Unable to read file INFO 22/06/10 17:29:liquibase: -Unable to read file liquibase.exception.ChangeLogParseException: Invalid Migration File: -Unable to read file

I’ve tried using install/pkg/mssql/schema.sql and various other combinations. All throw similar errors. I don’t want to have to use absolute pathnames.

Any ideas?

Thanks,

Ben

PS running a 2.0 RC2 build

---

<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:** [June 22, 2010, 4:36pm UTC](https://forum.liquibase.org/t/sqlfile-cannot-find-file/561/2 "2010-06-22T16:36:00Z")

</div>

What does your install.bat look like?

Nathan

---

<div class="post-metadata">

**Author:** ![ben\_lb](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@ben\_lb](https://forum.liquibase.org/u/ben_lb)\
**Post date:** [June 22, 2010, 4:36pm UTC](https://forum.liquibase.org/t/sqlfile-cannot-find-file/561/3 "2010-06-22T16:36:00Z")

</div>

install.bat is just a wrapper to the supplied liquibase.bat script. i.e.:

call liquibase --changeLogFile=install.xml update

---

<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:** [June 22, 2010, 4:36pm UTC](https://forum.liquibase.org/t/sqlfile-cannot-find-file/561/4 "2010-06-22T16:36:00Z")

</div>

what if you use a --classpath=pkg parameter ?

Nathan
