DB-Fehler bei Abschluß Workflow-Task
-
Hallo,
ich habe ein Problem beim Abschluß eines Workflows. Wenn ich bei einem zugewiesenen Task eine abschließende Beschreibung angebe und dann den Task abschließe erhalte ich foglende Meldung:Exception occurred:
isys_exception_database : Query error: 'INSERT INTO isys_workflow_action_parameter SET isys_workflow_action_parameter__key = 'description',isys_workflow_action_parameter__isys_wf_template_parameter__id = '0', isys_workflow_action_parameter__isys_workflow_action__id = '49', isys_workflow_action_parameter__text = 'sdfd fd fd df';': Cannot add or update a child row: a foreign key constraint fails (idoit_data/isys_workflow_action_parameter
, CONSTRAINTisys_workflow_action_parameter_ibfk_2
FOREIGN KEY (isys_workflow_action_parameter__isys_wf_template_parameter__id
) REFERENCES `isys_)Der Task wird danach als abgeschlossen angezeigt, aber bei der zugewiesenen Persons steht er immer noch unter angenommen.
Idoit-Version 0.99mfg.
Hartmut -
Hallo,
den Key 'isys_workflow_action_parameter_ibfk_2' find ich gar nicht in meiner DB.mfg.
Hartmut -
Hi,
also ich komm echt hier nicht weiter; hat denn niemand diesen Parameter in seiner Datenbank?mfg.
Hartmut -
Versuch mal folgendes Statement in der Mandanten Datenbank auszuführen:
ALTER TABLE
isys_workflow_action_parameter
DROP FOREIGN KEYisys_workflow_action_parameter_ibfk_20
;ALTER TABLE
isys_workflow_action_parameter
ADD FOREIGN KEY (isys_workflow_action_parameter__isys_wf_template_parameter__id
) REFERENCESidoit_data_ng
.isys_workflow_template_parameter
(
isys_workflow_template_parameter__id
) ON DELETE SET NULL ON UPDATE CASCADE ; -
Jupp, hab ich gemacht:
mysql> use idoit_data
Database changed
mysql> ALTER TABLEisys_workflow_action_parameter
DROP FOREIGN KEYisys_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 TABLEisys_workflow_action_parameter
ADD FOREIGN KEY (isys_workflow_action_parameter__isys_wf_templa te_parameter__id
) REFERENCESidoit_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 -
Vor dem Ausführen des Statements noch:
SET FOREIGN_KEY_CHECKS = 0;
-
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
, CONSTRAINTisys_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 -
hmmmm mach mal bitte ein
SHOW CREATE TABLE isys_workflow_action_parameter;
-
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 TABLEisys_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
),
KEYisys_workflow_action_parameter__isys_workflow_action__id
(isys_workflow_action_parameter__isys_workflow_action__id
),
KEYisys_workflow_action_parameter__isys_wf_template_parameter__id
(isys_workflow_action_parameter__isys_wf_template_parameter__id
),
CONSTRAINTisys_workflow_action_parameter_ibfk_1
FOREIGN KEY (isys_workflow_action_parameter__isys_workflow_action__id
) REFERENCESisys_workflow_action
(isys_workflow_action__id
),
CONSTRAINTisys_workflow_action_parameter_ibfk_2
FOREIGN KEY (isys_workflow_action_parameter__isys_wf_template_parameter__id
) REFERENCESisys_workflow_template_parameter
(isys_workflow_template_parameter__id
),
CONSTRAINTisys_workflow_action_parameter_ibfk_3
FOREIGN KEY (isys_workflow_action_parameter__isys_wf_template_parameter__id
) REFERENCESidoit_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 -
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 -
ah sorry ich hab dir ein falsches statement gegeben
Versuch mal bitte diese:SET FOREIGN_KEY_CHECKS=0;
ALTER TABLEisys_workflow_action_parameter
DROP FOREIGN KEYisys_workflow_action_parameter_ibfk_3
;ALTER TABLE
isys_workflow_action_parameter
ADD FOREIGN KEY (isys_workflow_action_parameter__isys_wf_template_parameter__id
) REFERENCESisys_workflow_template_parameter
(
isys_workflow_template_parameter__id
) ON DELETE SET NULL ON UPDATE CASCADE ; -
Hallo,
hab da leider immer noch einen Fehler:
mysql> ALTER TABLE
isys_workflow_action_parameter
DROP FOREIGN KEYisys_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 -
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 Anderedie 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
, CONSTRAINTisys_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 -
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 Hilfemfg.
hartmut