Miigration failed for changeset:

We are using liquibase update command and I am seeing following error

command used:
liquibase --url=mongodb://XXXXXXXX/test?authSource=admin --changeLogFile=“changeset_master.xml” update

ERROR:

Running Changeset: Create_collection.xml::1::XXXX

UPDATE SUMMARY
Run: 0
Previously run: 0
Filtered out: 0
Failed deployment: 1

Total change sets: 1

ERROR: Exception Details
ERROR: Exception Primary Class: DatabaseException
ERROR: Exception Primary Reason: liquibase-mongodb extension cannot execute changeset
Unknown type: liquibase.statement.core.CreateTableStatement
Please check the following common causes:

  • Verify change set definitions for common error such as: changeType name, changeSet attributes spelling (such as runWith, context, etc.), and punctuation.
  • Verify that changesets have all the required changeset attributes and do not have invalid attributes for the designated change type.
  • Double-check to make sure your basic setup includes all needed extensions in your Java classpath
    ERROR: Exception Primary Source: 4.28.0

Unexpected error running Liquibase: Migration failed for changeset Create_collection.xml::1::XXX
Reason: liquibase.exception.DatabaseException: liquibase-mongodb extension cannot execute changeset
Unknown type: liquibase.statement.core.CreateTableStatement
Please check the following common causes:

  • Verify change set definitions for common error such as: changeType name, changeSet attributes spelling (such as runWith, context, etc.), and punctuation.
  • Verify that changesets have all the required changeset attributes and do not have invalid attributes for the designated change type.
  • Double-check to make sure your basic setup includes all needed extensions in your Java classpath

Your dbchangelog xsd is set to v3.8. I’m guessing that is the problem.

I recommend changing to dbchangelog-latest.xsd and trying again.

I am still seeing same issue.

Add these CLI parameters to see more output details:

--sql-log-level=INFO --log-level=INFO

ERROR: Exception Details
ERROR: Exception Primary Class: DatabaseException
ERROR: Exception Primary Reason: liquibase-mongodb extension cannot execute changeset
Unknown type: liquibase.statement.core.CreateTableStatement
Please check the following common causes:

  • Verify change set definitions for common error such as: changeType name, changeSet attributes spelling (such as runWith, context, etc.), and punctuation.
  • Verify that changesets have all the required changeset attributes and do not have invalid attributes for the designated change type.
  • Double-check to make sure your basic setup includes all needed extensions in your Java classpath
    ERROR: Exception Primary Source: 4.28.0

Unexpected error running Liquibase: Migration failed for changeset Create_collection.xml::1::XXXX:
Reason: liquibase.exception.DatabaseException: liquibase-mongodb extension cannot execute changeset
Unknown type: liquibase.statement.core.CreateTableStatement
Please check the following common causes:

  • Verify change set definitions for common error such as: changeType name, changeSet attributes spelling (such as runWith, context, etc.), and punctuation.
  • Verify that changesets have all the required changeset attributes and do not have invalid attributes for the designated change type.
  • Double-check to make sure your basic setup includes all needed extensions in your Java classpath

For more information, please use the --log-level flag
mongosh_command_url: XXXXX/test?authSource=admin
Build Sources Directory: D:\AzDOAgents\agent5_work\2003\s
Changeset Master File Path: Database\GSSP