Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    DB-Fehler bei Abschluß Workflow-Task

    Scheduled Pinned Locked Moved Betrieb
    14 Posts 3 Posters 2.7k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      netzi01
      last edited by

      Hallo,
      den Key 'isys_workflow_action_parameter_ibfk_2' find ich gar nicht in meiner DB.

      mfg.
        Hartmut

      1 Reply Last reply Reply Quote 0
      • N Offline
        netzi01
        last edited by

        Hi,
        also ich komm echt hier nicht weiter; hat denn niemand diesen Parameter in seiner Datenbank?

        mfg.
          Hartmut

        1 Reply Last reply Reply Quote 0
        • dsD Offline
          ds
          last edited by

          Versuch mal folgendes Statement in der Mandanten Datenbank auszuführen:

          ALTER TABLE  isys_workflow_action_parameter DROP FOREIGN KEY  isys_workflow_action_parameter_ibfk_20 ;

          ALTER TABLE  isys_workflow_action_parameter ADD FOREIGN KEY (  isys_workflow_action_parameter__isys_wf_template_parameter__id ) REFERENCES  idoit_data_ng.isys_workflow_template_parameter (
          isys_workflow_template_parameter__id
          ) ON DELETE SET NULL ON UPDATE CASCADE ;

          1 Reply Last reply Reply Quote 0
          • N Offline
            netzi01
            last edited by

            Jupp, hab ich gemacht:

            mysql> use idoit_data
            Database changed
            mysql> ALTER TABLE  isys_workflow_action_parameter DROP FOREIGN KEY  isys_workflow_action_parameter_ibfk_20 ;
            ERROR 1025 (HY000): Error on rename of './idoit_data/isys_workflow_action_parameter' to './idoit_data/#sql2-4150-9f970'              (errno: 152)
            mysql> ALTER TABLE  isys_workflow_action_parameter ADD FOREIGN KEY (  isys_workflow_action_parameter__isys_wf_templa              te_parameter__id ) REFERENCES  idoit_data_ng.isys_workflow_template_parameter (
                -> isys_workflow_template_parameter__id
                -> ) ON DELETE SET NULL ON UPDATE CASCADE ;
            ERROR 1005 (HY000): Can't create table './idoit_data/#sql-4150_9f970.frm' (errno: 150)
            mysql>

            Schaut nicht gut aus. Das war eine Neu-Instalalation der Version 0.99; kein Update einer früheren.
            Was ist denn das –> './idoit_data/#sql2-4150-9f970' ?

            mfg.
              Hartmut

            1 Reply Last reply Reply Quote 0
            • dsD Offline
              ds
              last edited by

              Vor dem Ausführen des Statements noch:

              SET FOREIGN_KEY_CHECKS = 0;

              1 Reply Last reply Reply Quote 0
              • N Offline
                netzi01
                last edited by

                Hallo,

                hab die Änderungen eingegeben; es gab keine Fehler.
                Dann hab ich in Idoit versucht einen neuen Workflow mit einer checklist einzugeben.
                habe eine Person ausgewählt, ein Objekt hinzugefügt, Start und Enddatum eingesetzt, Beschreibung und habe dann 'Speichern' gedrückt.
                Beim Abspeichern kommt nun folgende Meldung:

                isys_exception_database : Query error: 'INSERT INTO isys_workflow_action_parameter SET isys_workflow_action_parameter__key = 'checklist__start_date',isys_workflow_action_parameter__isys_wf_template_parameter__id = '5', isys_workflow_action_parameter__isys_workflow_action__id = '1', isys_workflow_action_parameter__datetime = '2010-03-31';': Cannot add or update a child row: a foreign key constraint fails (idoit_data/isys_workflow_action_parameter, CONSTRAINT isys_workflow_action_parameter_ibfk_3 FOREIGN KEY (isys_workflow_action_parameter__isys_wf_template_parameter__id) REFERENCES `idoit)

                Jetzt sucht er plötzlich 'isys_workflow_action_parameter_ibfk_3'

                mfg.
                  Hartmut

                1 Reply Last reply Reply Quote 0
                • dsD Offline
                  ds
                  last edited by

                  hmmmm mach mal bitte ein

                  SHOW CREATE TABLE isys_workflow_action_parameter;

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    netzi01
                    last edited by

                    Yupp, hab ich hier:

                    mysql> use idoit_data
                    Database changed
                    mysql> SHOW CREATE TABLE isys_workflow_action_parameter;
                    +–------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
                    | Table                          | Create Table                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
                    +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
                    | isys_workflow_action_parameter | CREATE TABLE isys_workflow_action_parameter (
                      isys_workflow_action_parameter__id int(10) unsigned NOT NULL auto_increment,
                      isys_workflow_action_parameter__isys_workflow_action__id int(10) default NULL,
                      isys_workflow_action_parameter__isys_wf_template_parameter__id int(10) unsigned default NULL,
                      isys_workflow_action_parameter__key varchar(255) collate utf8_unicode_ci default NULL,
                      isys_workflow_action_parameter__int int(10) unsigned default NULL,
                      isys_workflow_action_parameter__string varchar(255) collate utf8_unicode_ci default NULL,
                      isys_workflow_action_parameter__text text collate utf8_unicode_ci,
                      isys_workflow_action_parameter__datetime datetime default NULL,
                      PRIMARY KEY  (isys_workflow_action_parameter__id),
                      KEY isys_workflow_action_parameter__isys_workflow_action__id (isys_workflow_action_parameter__isys_workflow_action__id),
                      KEY isys_workflow_action_parameter__isys_wf_template_parameter__id (isys_workflow_action_parameter__isys_wf_template_parameter__id),
                      CONSTRAINT isys_workflow_action_parameter_ibfk_1 FOREIGN KEY (isys_workflow_action_parameter__isys_workflow_action__id) REFERENCES isys_workflow_action (isys_workflow_action__id),
                      CONSTRAINT isys_workflow_action_parameter_ibfk_2 FOREIGN KEY (isys_workflow_action_parameter__isys_wf_template_parameter__id) REFERENCES isys_workflow_template_parameter (isys_workflow_template_parameter__id),
                      CONSTRAINT isys_workflow_action_parameter_ibfk_3 FOREIGN KEY (isys_workflow_action_parameter__isys_wf_template_parameter__id) REFERENCES idoit_data_ng.isys_workflow_template_parameter (isys_workflow_template_parameter__id) ON DELETE SET NULL ON UPDATE CASCADE
                    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci |
                    +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
                    1 row in set (0.00 sec)

                    mfg.
                      Hartmut

                    1 Reply Last reply Reply Quote 0
                    • N Offline
                      netzi01
                      last edited by

                      Hallo,

                      hab jetzt auch mal das Update 0.9.9-1 installiert sowie den vorhergehenden Patch; hat alles nichts gebracht. Bei der Neuanlage eines Workflow erscheint wieder diese Meldung.

                      mfg.
                        Hartmut

                      1 Reply Last reply Reply Quote 0
                      • dsD Offline
                        ds
                        last edited by

                        ah sorry ich hab dir ein falsches statement gegeben 😞
                        Versuch mal bitte diese:

                        SET FOREIGN_KEY_CHECKS=0;
                        ALTER TABLE  isys_workflow_action_parameter DROP FOREIGN KEY  isys_workflow_action_parameter_ibfk_3 ;

                        ALTER TABLE  isys_workflow_action_parameter ADD FOREIGN KEY (  isys_workflow_action_parameter__isys_wf_template_parameter__id ) REFERENCES  isys_workflow_template_parameter (
                        isys_workflow_template_parameter__id
                        ) ON DELETE SET NULL ON UPDATE CASCADE ;

                        1 Reply Last reply Reply Quote 0
                        • N Offline
                          netzi01
                          last edited by

                          Hallo,

                          hab da leider immer noch einen Fehler:

                          mysql> ALTER TABLE  isys_workflow_action_parameter DROP FOREIGN KEY  isys_workflow_action_parameter_ibfk_3 ;
                          ERROR 1025 (HY000): Error on rename of './idoit_data/isys_workflow_action_parameter' to './idoit_data/#sql2-4150-d5d3b' (errno: 152) 😞

                          mfg.
                            Hartmut

                          1 Reply Last reply Reply Quote 0
                          • P Offline
                            pgo
                            last edited by

                            Ein ähnliches Problem ist bei uns auch aufgetreten:

                            nach dem update auf 9.9.9-1 habe ich erst mal die standard reports neu installiert und dabei zufaellig ein paar alte unfertige stromobjekte gefunden. diese wollte ich archivieren und löschen.

                            3918 generated POWER CONSUMER 1232375605 Sicherungskasten SYSID_1232375605 Ausgeschieden
                            4201 generated POWER CONSUMER 1234965578 Sicherungskasten SYSID_1234965578 Andere
                            6393 generated POWER CONSUMER 1251204782 Sicherungskasten SYSID_1251211175 Andere
                            6769 generated POWER CONSUMER 1253702635 Sicherungskasten SYSID_1253709404 Andere
                            7038 generated POWER CONSUMER 1256804793 Sicherungskasten SYSID_1256811831 Andere

                            die objekte sind archiviert - wenn ich nun auf löschen klicke erhalte ich folgende fehlermedung…

                            isys_exception_database : Query error: 'DELETE FROM isys_obj WHERE isys_obj__id = '3918'': Cannot delete or update a parent row: a foreign key constraint fails (idoit_data/isys_catg_power_consumer_list, CONSTRAINT isys_catg_power_consumer_list_ibfk_2 FOREIGN KEY (isys_catg_power_consumer_list__isys_cats_pobj_list__id) REFERENCES `isys_cats_pobj_)

                            irgendwelche tips ?

                            lG,
                            Philipp

                            1 Reply Last reply Reply Quote 0
                            • N Offline
                              netzi01
                              last edited by

                              Hallo,
                              nachdem ich wohl der einzige bin, der mit so einem Fehler zu kämpfen hat, werd ich idoit noch mal komplett neu installieren.
                              Trotzdem danke für die Hilfe 🙂

                              mfg.
                                hartmut

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post