liquibase.exception.UnexpectedLiquibaseException: Unknown onUpdate action: null

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • NPE on customChange
    via GitHub by vporoxnenko
    ,
  • 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}
    via by David Delbecq,
    • liquibase.exception.UnexpectedLiquibaseException: Unknown onUpdate action: null at liquibase.change.core.AddForeignKeyConstraintChange.setOnUpdate(AddForeignKeyConstraintChange.java:162) at liquibase.diff.DiffResult.addMissingForeignKeyChanges(DiffResult.java:583) at liquibase.diff.DiffResult.printChangeLog(DiffResult.java:423) at liquibase.diff.DiffResult.printChangeLog(DiffResult.java:349) at liquibase.diff.DiffResult.printChangeLog(DiffResult.java:332) at liquibase.integration.commandline.CommandLineUtils.doDiffToChangeLog(CommandLineUtils.java:126) at liquibase.integration.commandline.Main.doMigration(Main.java:599) at liquibase.integration.commandline.Main.main(Main.java:106)
    No Bugmate found.