Bitte wähle nachfolgend aus, welche Beiträge auf dieser Themenseite auf dem Ausdruck ausgegeben werden sollen. Um dies zu tun markiere bitte die Checkbox auf der linken Seite der Posts, die im Ausdruck berücksichtigt werden sollen und klicke anschließend ganz unten auf der Seite auf den Button "Drucken".

SynTAX update 2.10.4 -> 2.10.9 SQL fehler

insert into steuer -> primary Key constraint violation

yogi70

Betreff:

SynTAX update 2.10.4 -> 2.10.9 SQL fehler

 ·  Gepostet: 22.11.2026 - 12:43 Uhr  ·  #188542
Moin zusammen,

wenn ich versuche von SynTAX 2.10.4 auf 2.10.9 zu aktualisierien ist anschließend SynTAX nicht mehr im Menü und im jameica.log sehe ich die folgende Fehlermeldung:

Würde mich über nen Tip freuen. Derzeit suche ich wie ich in die DB reinschauen kann um das fehlschlagende SQLs direkt auszuführen...

Log-Segment mit der Fehlermeldung:
Code
[Sun Nov 22 12:06:53 CET 2026][INFO][main][de.willuhn.jameica.plugin.PluginLoader.initPlugin] plugin hibiscus initialized successfully
[Sun Nov 22 12:06:53 CET 2026][INFO][main][de.willuhn.jameica.gui.SplashScreen$3.run]  init plugin syntax [Version: 2.10.9] ...
[Sun Nov 22 12:06:53 CET 2026][INFO][main][de.willuhn.jameica.plugin.PluginLoader.initPlugin] init plugin syntax [Version: 2.10.9]
[Sun Nov 22 12:06:53 CET 2026][INFO][main][de.willuhn.jameica.plugin.PluginLoader.initPlugin] trying to initialize de.willuhn.jameica.fibu.Fibu
[Sun Nov 22 12:06:53 CET 2026][INFO][main][de.willuhn.jameica.plugin.PluginLoader.initPlugin] detected update from version 2.10.4 to 2.10.9, starting update
[Sun Nov 22 12:06:53 CET 2026][INFO][main][de.willuhn.jameica.gui.SplashScreen$3.run]  updating plugin syntax ...
[Sun Nov 22 12:06:53 CET 2026][INFO][main][de.willuhn.jameica.gui.SplashScreen$3.run]  initializing plugin syntax ...
[Sun Nov 22 12:06:53 CET 2026][INFO][main][de.willuhn.jameica.gui.SplashScreen$3.run]  init services for plugin syntax [version: 2.10.9] ...
[Sun Nov 22 12:06:53 CET 2026][INFO][main][de.willuhn.jameica.gui.SplashScreen$3.run]  syntax: init service database ...
[Sun Nov 22 12:06:53 CET 2026][INFO][main][de.willuhn.jameica.gui.SplashScreen$3.run]  install service database ...
[Sun Nov 22 12:06:53 CET 2026][INFO][main][de.willuhn.jameica.system.ServiceFactory.install] service: database
[Sun Nov 22 12:06:53 CET 2026][INFO][main][de.willuhn.jameica.fibu.Settings.getDBSupport] trying to load de.willuhn.jameica.fibu.server.DBSupportMcKoiImpl
[Sun Nov 22 12:06:53 CET 2026][INFO][main][de.willuhn.util.I18N.<init>] loading resource bundle lang/syntax_messages for locale de_DE
[Sun Nov 22 12:06:53 CET 2026][INFO][main][de.willuhn.util.I18N.<init>] loading resource bundle lang/messages for locale de_DE
[Sun Nov 22 12:06:53 CET 2026][INFO][main][de.willuhn.jameica.plugin.PluginResources.getI18N] plugin de.willuhn.jameica.fibu.Fibu does not support jameicas locale de_DE
[Sun Nov 22 12:06:53 CET 2026][INFO][main][de.willuhn.jameica.system.ServiceFactory.install]   starting service
[Sun Nov 22 12:06:53 CET 2026][INFO][main][de.willuhn.jameica.gui.SplashScreen$3.run]  starting service database ...
[Sun Nov 22 12:06:53 CET 2026][INFO][main][de.willuhn.jameica.fibu.server.DBServiceImpl.start] init database
[Sun Nov 22 12:06:54 CET 2026][INFO][main][de.willuhn.jameica.fibu.server.DBServiceImpl.start] init update provider
[Sun Nov 22 12:06:54 CET 2026][INFO][main][de.willuhn.sql.version.Updater.execute] current version: 11
[Sun Nov 22 12:06:54 CET 2026][INFO][main][de.willuhn.sql.version.Updater.execute] searching for available updates
[Sun Nov 22 12:06:54 CET 2026][INFO][main][de.willuhn.sql.version.Updater.execute] found 1 update files
[Sun Nov 22 12:06:54 CET 2026][INFO][main][de.willuhn.sql.version.Updater.execute] encoding: ISO-8859-15
[Sun Nov 22 12:06:54 CET 2026][INFO][main][de.willuhn.sql.version.Updater.execute]   executing mckoi-update0012.sql
[Sun Nov 22 12:06:54 CET 2026][INFO][main][de.willuhn.jameica.gui.SplashScreen$3.run]  reading sql script ...
[Sun Nov 22 12:06:54 CET 2026][INFO][main][de.willuhn.jameica.gui.SplashScreen$3.run]  starting transaction ...
[Sun Nov 22 12:06:54 CET 2026][INFO][main][de.willuhn.sql.ScriptExecutor.execute] starting transaction
[Sun Nov 22 12:06:54 CET 2026][INFO][main][de.willuhn.jameica.gui.SplashScreen$3.run]  executing sql commands ...
[Sun Nov 22 12:06:54 CET 2026][INFO][main][de.willuhn.jameica.gui.SplashScreen$3.run]  executing sql commands ...
[Sun Nov 22 12:06:54 CET 2026][INFO][main][de.willuhn.jameica.gui.SplashScreen$3.run]  rollback transaction ...
[Sun Nov 22 12:06:54 CET 2026][INFO][main][de.willuhn.sql.ScriptExecutor.execute] rollback transaction
[Sun Nov 22 12:06:54 CET 2026][ERROR][main][de.willuhn.sql.ScriptExecutor.execute] error while executing sql script. Current statement: INSERT INTO steuer  (name, satz, steuerkonto_id,ust_nr_steuer,ust_nr_bemessung) SELECT DISTINCT CONCAT(IF (stk.kontotyp_id = 1,'Umsatzsteuer ','Vorsteuer '),b.steuer,'%'), b.steuer,s.steuerkonto_id,s.ust_nr_steuer,s.ust_nr_bemessung FROM buchung b, konto k, steuer s, konto stk, geschaeftsjahr gj WHERE b.steuer is not null and ((k.id = b.habenkonto_id and (k.kontoart_id != 3 and k.kontoart_id != 5)) or (k.id = b.sollkonto_id and (k.kontoart_id != 3 and k.kontoart_id != 5))) and s.steuerkonto_id is not null and s.id = k.steuer_id and stk.id = s.steuerkonto_id and gj.id = b.geschaeftsjahr_id and concat(stk.kontenrahmen_id,stk.kontotyp_id, b.steuer) not in (SELECT DISTINCT concat(stk2.kontenrahmen_id,stk2.kontotyp_id, s2.satz) FROM steuer s2,konto stk2 WHERE stk2.kontotyp_id is not null and (s2.mandant_id = gj.mandant_id or s2.mandant_id is null) and s2.steuerkonto_id = stk2.id)
com.mckoi.database.jdbc.MSQLException: Immediate primary Key constraint violation (_ANONYMOUS_CONSTRAINT_9) Columns = ( id ) Table = ( APP.steuer )
        at com.mckoi.database.jdbcserver.AbstractJDBCDatabaseInterface.handleExecuteThrowable(AbstractJDBCDatabaseInterface.java:289)
        at com.mckoi.database.jdbcserver.AbstractJDBCDatabaseInterface.execQuery(AbstractJDBCDatabaseInterface.java:479)
        at com.mckoi.database.jdbcserver.JDBCDatabaseInterface.execQuery(JDBCDatabaseInterface.java:251)
        at com.mckoi.database.jdbc.MConnection.executeQuery(MConnection.java:453)
        at com.mckoi.database.jdbc.MConnection.executeQueries(MConnection.java:436)
        at com.mckoi.database.jdbc.MStatement.executeQueries(MStatement.java:193)
        at com.mckoi.database.jdbc.MStatement.executeQuery(MStatement.java:167)
        at com.mckoi.database.jdbc.MStatement.executeUpdate(MStatement.java:226)
        at de.willuhn.sql.ScriptExecutor.execute(ScriptExecutor.java:166)
        at de.willuhn.sql.version.Updater.execute(Updater.java:244)
        at de.willuhn.sql.version.Updater.execute(Updater.java:181)
        at de.willuhn.jameica.fibu.server.DBServiceImpl.start(DBServiceImpl.java:140)
        at de.willuhn.jameica.system.ServiceFactory.install(ServiceFactory.java:166)
        at de.willuhn.jameica.system.ServiceFactory.init(ServiceFactory.java:70)
        at de.willuhn.jameica.plugin.PluginLoader.initPlugin(PluginLoader.java:395)
        at de.willuhn.jameica.plugin.PluginLoader.init(PluginLoader.java:239)
        at de.willuhn.jameica.services.PluginService.init(PluginService.java:39)
        at de.willuhn.boot.BootLoader.resolve(BootLoader.java:139)
        at de.willuhn.boot.BootLoader.resolve(BootLoader.java:119)
        at de.willuhn.boot.BootLoader.getBootable(BootLoader.java:70)
        at de.willuhn.jameica.system.Application.init(Application.java:103)
        at de.willuhn.jameica.system.Application.newInstance(Application.java:87)
        at de.willuhn.jameica.Main.main(Main.java:78)
CAUSE: com.mckoi.database.DatabaseConstraintViolationException: Immediate primary Key constraint violation (_ANONYMOUS_CONSTRAINT_9) Columns = ( id ) Table = ( APP.steuer )
        at com.mckoi.database.TableDataConglomerate.checkAddConstraintViolations(TableDataConglomerate.java:1963)
        at com.mckoi.database.MasterTableDataSource$MMutableTableDataSource.constraintIntegrityCheck(MasterTableDataSource.java:1924)
        at com.mckoi.database.DataTable.add(DataTable.java:180)
        at com.mckoi.database.interpret.Insert.evaluate(Insert.java:291)
        at com.mckoi.database.interpret.SQLQueryExecutor.execute(SQLQueryExecutor.java:147)
        at com.mckoi.database.jdbcserver.AbstractJDBCDatabaseInterface.execQuery(AbstractJDBCDatabaseInterface.java:461)
        at com.mckoi.database.jdbcserver.JDBCDatabaseInterface.execQuery(JDBCDatabaseInterface.java:251)
        at com.mckoi.database.jdbc.MConnection.executeQuery(MConnection.java:453)
        at com.mckoi.database.jdbc.MConnection.executeQueries(MConnection.java:436)
        at com.mckoi.database.jdbc.MStatement.executeQueries(MStatement.java:193)
        at com.mckoi.database.jdbc.MStatement.executeQuery(MStatement.java:167)
        at com.mckoi.database.jdbc.MStatement.executeUpdate(MStatement.java:226)
        at de.willuhn.sql.ScriptExecutor.execute(ScriptExecutor.java:166)
        at de.willuhn.sql.version.Updater.execute(Updater.java:244)
        at de.willuhn.sql.version.Updater.execute(Updater.java:181)
        at de.willuhn.jameica.fibu.server.DBServiceImpl.start(DBServiceImpl.java:140)
        at de.willuhn.jameica.system.ServiceFactory.install(ServiceFactory.java:166)
        at de.willuhn.jameica.system.ServiceFactory.init(ServiceFactory.java:70)
        at de.willuhn.jameica.plugin.PluginLoader.initPlugin(PluginLoader.java:395)
        at de.willuhn.jameica.plugin.PluginLoader.init(PluginLoader.java:239)
        at de.willuhn.jameica.services.PluginService.init(PluginService.java:39)
        at de.willuhn.boot.BootLoader.resolve(BootLoader.java:139)
        at de.willuhn.boot.BootLoader.resolve(BootLoader.java:119)
        at de.willuhn.boot.BootLoader.getBootable(BootLoader.java:70)
        at de.willuhn.jameica.system.Application.init(Application.java:103)
        at de.willuhn.jameica.system.Application.newInstance(Application.java:87)
        at de.willuhn.jameica.Main.main(Main.java:78)


[Sun Nov 22 12:07:07 CET 2026][ERROR][main][de.willuhn.jameica.system.ServiceFactory.init] error while initializing service, 
java.rmi.RemoteException: error while installing service database; nested exception is: 
        java.rmi.RemoteException: java.sql.SQLException: exception while executing sql script: Immediate primary Key constraint violation (_ANONYMOUS_CONSTRAINT_9) Columns = ( id ) Table = ( APP.steuer ). Current statement: INSERT INTO steuer  (name, satz, steuerkonto_id,ust_nr_steuer,ust_nr_bemessung) SELECT DISTINCT CONCAT(IF (stk.kontotyp_id = 1,'Umsatzsteuer ','Vorsteuer '),b.steuer,'%'), b.steuer,s.steuerkonto_id,s.ust_nr_steuer,s.ust_nr_bemessung FROM buchung b, konto k, steuer s, konto stk, geschaeftsjahr gj WHERE b.steuer is not null and ((k.id = b.habenkonto_id and (k.kontoart_id != 3 and k.kontoart_id != 5)) or (k.id = b.sollkonto_id and (k.kontoart_id != 3 and k.kontoart_id != 5))) and s.steuerkonto_id is not null and s.id = k.steuer_id and stk.id = s.steuerkonto_id and gj.id = b.geschaeftsjahr_id and concat(stk.kontenrahmen_id,stk.kontotyp_id, b.steuer) not in (SELECT DISTINCT concat(stk2.kontenrahmen_id,stk2.kontotyp_id, s2.satz) FROM steuer s2,konto stk2 WHERE stk2.kontotyp_id is not null and (s2.mandant_id = gj.mandant_id or s2.mandant_id is null) and s2.steuerkonto_id = stk2.id); nested exception is: 

infoman

Betreff:

Re: SynTAX update 2.10.4 -> 2.10.9 SQL fehler

 ·  Gepostet: 22.11.2026 - 13:24 Uhr  ·  #188543