0

I try to update a task from TYPO3 9.5 to 10.4 (extending AbstractTask - not Symfony Command). Now I get this error message:

Execution of task "Blah Import" failed with the following message: Incorrect integer value: '' for column `db`.`tx_blubb_domain_model_organisation`.`organisation_group` at row 1

I've tried many different things but I cannot solve this error... In the TCA of the organisation, for the field organisation_group there is definitly 'default' => 0 set.

The Database field is set in ext_tables.sql like:

organisation_group int(11) unsigned default '0' not null

The Organisation Group is an ObjectStorage, the error appears when $this->persistenceManager->persistAll() is called. If I debug the organisation one line before persistation, everything looks good to me.

Any ideas where I can search?

Before anyone suggests it - disabling the DB strict mode is no option :)

EDIT:
This Message tells me, maybe I don't have to search in TCA. This field got deleted from ext_tables.sql and renamed by the DB compare tool. After it was renamed, the error still is triggered by this field. So, I'll now start to delete all fields and let TYPO3 create it again. Maybe there is only a misconfiguration of some fields in the database. Error with deleted field

EDIT 2:
Now I can run this task, when I remove the field organisation_group from the TCA.
All other fields (+/- 10) that throws the same error, could be fixed by deleting and recreate, or by allowing null in e.g. field_xy text null,.

Only the field organisatio_group, still throws the error when I reenable it in TCA.

Here's the TCA - maybe anyone have another idea :/

'organisation_group' => [
    'exclude' => 1,
    'label' => '...',
    'description' => '...',
    'config' => [
        'type' => 'select',
        'renderType' => 'selectSingle',
        'items' => [
            ['', 0]
        ],
        'foreign_table' => 'tx_blah_domain_model_organisationgroup',
        'size' => 1,
        'default' => 0,
        'eval' => 'int'
    ],
],
4

0 回答 0