liquibase.exception.UnexpectedLiquibaseException: Unknown onUpdate action: null

JIRA | Damian Golda | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    NPE on customChange

    GitHub | 1 year ago | vporoxnenko
    liquibase.exception.UnexpectedLiquibaseException: liquibase.exception.CustomChangeException: java.lang.NullPointerException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Issue CORE-2380 "Support reading of gzip files" is only partially implemented. It works only with FileSystemResourceAccessor. The same fix should be applied to other Accessors too, especially ClassLoaderResourceAccessor. {noformat} $ liquibase/liquibase --driver=org.mariadb.jdbc.Driver --classpath=lib/mariadb-java-client-1.3.4.jar:upgradescripts/ --changeLogFile=db.changelog-master.xml --url=jdbc:mysql://localhost:3306/***** --username=***** --password=***** --logLevel=INFO update INFO 17/10/16 9:31: liquibase: Successfully acquired change log lock INFO 17/10/16 9:31: liquibase: Reading from *****.DATABASECHANGELOG SEVERE 17/10/16 9:31: liquibase: db.changelog-master.xml: upgrade/1.1/B-04687/db.changelog.xml::CombinedNomenclatureUpdate::DBQ: Change Set upgrade/1.1/B-04687/db.changelog.xml::CombinedNomenclatureUpdate::DBQ failed. Error: CSV Line 1 has only 0 columns, the header has 2 liquibase.exception.UnexpectedLiquibaseException: CSV Line 1 has only 0 columns, the header has 2 at liquibase.change.core.LoadDataChange.generateStatements(LoadDataChange.java:184) at liquibase.database.AbstractJdbcDatabase.executeStatements(AbstractJdbcDatabase.java:1232) at liquibase.changelog.ChangeSet.execute(ChangeSet.java:554) at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:51) at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:73) at liquibase.Liquibase.update(Liquibase.java:212) at liquibase.Liquibase.update(Liquibase.java:192) at liquibase.integration.commandline.Main.doMigration(Main.java:1096) at liquibase.integration.commandline.Main.run(Main.java:180) at liquibase.integration.commandline.Main.main(Main.java:99) INFO 17/10/16 9:31: liquibase: upgrade/1.1/B-04687/db.changelog.xml::CombinedNomenclatureUpdate::DBQ: Successfully released change log lock Unexpected error running Liquibase: CSV Line 1 has only 0 columns, the header has 2 SEVERE 17/10/16 9:31: liquibase: upgrade/1.1/B-04687/db.changelog.xml::CombinedNomenclatureUpdate::DBQ: CSV Line 1 has only 0 columns, the header has 2 liquibase.exception.MigrationFailedException: Migration failed for change set upgrade/1.1/B-04687/db.changelog.xml::CombinedNomenclatureUpdate::DBQ: Reason: liquibase.exception.UnexpectedLiquibaseException: CSV Line 1 has only 0 columns, the header has 2 at liquibase.changelog.ChangeSet.execute(ChangeSet.java:590) at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:51) at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:73) at liquibase.Liquibase.update(Liquibase.java:212) at liquibase.Liquibase.update(Liquibase.java:192) at liquibase.integration.commandline.Main.doMigration(Main.java:1096) at liquibase.integration.commandline.Main.run(Main.java:180) at liquibase.integration.commandline.Main.main(Main.java:99) Caused by: liquibase.exception.UnexpectedLiquibaseException: CSV Line 1 has only 0 columns, the header has 2 at liquibase.change.core.LoadDataChange.generateStatements(LoadDataChange.java:184) at liquibase.database.AbstractJdbcDatabase.executeStatements(AbstractJdbcDatabase.java:1232) at liquibase.changelog.ChangeSet.execute(ChangeSet.java:554) ... 7 more {noformat} {noformat} $ ls upgrade/1.1/B-04687/cn/ T_ABREV.csv T_CN.csv.gz T_CN_TO_FN.csv T_FN.csv T_NOTE.csv T_SU.csv {noformat} Changelog extract {code:xml} <loadData tableName="ramonimp_cn" file="upgrade/1.1/B-04687/cn/T_CN.csv.gz"/> <loadData tableName="ramonimp_fn" file="upgrade/1.1/B-04687/cn/T_FN.csv"/> <loadData tableName="ramonimp_cntofn" file="upgrade/1.1/B-04687/cn/T_CN_TO_FN.csv"/> {code}

    JIRA | 6 months ago | David Delbecq
    liquibase.exception.UnexpectedLiquibaseException: CSV Line 1 has only 0 columns, the header has 2
  4. 0

    initialization of Change property defaults not consistent with liquibase core

    GitHub | 2 months ago | dgeissl
    liquibase.exception.UnexpectedLiquibaseException: Unknown target:

    Root Cause Analysis

    1. liquibase.exception.UnexpectedLiquibaseException

      Unknown onUpdate action: null

      at liquibase.change.core.AddForeignKeyConstraintChange.setOnUpdate()
    2. Liquibase Core
      Main.main
      1. liquibase.change.core.AddForeignKeyConstraintChange.setOnUpdate(AddForeignKeyConstraintChange.java:162)
      2. liquibase.diff.DiffResult.addMissingForeignKeyChanges(DiffResult.java:583)
      3. liquibase.diff.DiffResult.printChangeLog(DiffResult.java:423)
      4. liquibase.diff.DiffResult.printChangeLog(DiffResult.java:349)
      5. liquibase.diff.DiffResult.printChangeLog(DiffResult.java:332)
      6. liquibase.integration.commandline.CommandLineUtils.doDiffToChangeLog(CommandLineUtils.java:126)
      7. liquibase.integration.commandline.Main.doMigration(Main.java:599)
      8. liquibase.integration.commandline.Main.main(Main.java:106)
      8 frames