Marco, can you answer to our reactions to your tickets about this problem?
This problem mostly occur if there are one or more tables without a primary key. Mendix always creates primary keys for its tables and Mendix relies on their existance when it is upgrading a database from Mendix 3.* to 4.*.
Sometimes the primary keys are lost during a backup and restore of the database. In the case above at least the table 'administration$account_contractmanager' does not have a primary key.
Sanne Appel, can you check if this is also the problem in your case? Can you check the backups of your database and see whether and when some primary keys are lost?
Hmmm,
I now got this error when upgrading from 3.3.2 to 3.3.3.
Request action: execute_ddl_commands
Message: Executing DDL commands failed.
Cause: Error (SQL State: 42P07, Error Code: 0) on executing:
CREATE TABLE "rapportage$factuurregelterugfenc_factuurregel" (
"rapportage$factuurregelterugfencid" int4 NOT NULL,
"facturen$factuurregelid" int4 NOT NULL,
PRIMARY KEY("rapportage$factuurregelterugfencid","facturen$factuurregelid"))
All changes are rolled back.
Stack trace: com.mendix.m2ee.api.AdminException: Executing DDL commands failed.
at com.mendix.core.MxRuntime.d(SourceFile:509)
Caused by: d: Error (SQL State: 42P07, Error Code: 0) on executing:
CREATE TABLE "rapportage$factuurregelterugfenc_factuurregel" (
"rapportage$factuurregelterugfencid" int4 NOT NULL,
"facturen$factuurregelid" int4 NOT NULL,
PRIMARY KEY("rapportage$factuurregelterugfencid","facturen$factuurregelid"))
Could this be recent introduced bug then?