# Migrationsassistent 0.40.0 importiert nur 1 Produkte

**URL:** <https://forum.shopware.com/t/migrationsassistent-0-40-0-importiert-nur-1-produkte/63663>\
**Category:** Installation / Einstieg\
**Created:** [20. Dezember 2019 um 22:50 UTC](https://forum.shopware.com/t/migrationsassistent-0-40-0-importiert-nur-1-produkte/63663 "2019-12-20T22:50:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Munich77](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@Munich77](https://forum.shopware.com/u/Munich77)\
**Post date:** [20. Dezember 2019 um 22:50 UTC](https://forum.shopware.com/t/migrationsassistent-0-40-0-importiert-nur-1-produkte/63663/1 "2019-12-20T22:50:20Z")

</div>

Der&nbsp;Migrationsassistent Version 0.40.0 importiert nur 1 Produkt&nbsp;

Systemfehler aufgetreten:&nbsp;539  
Ein Schreibfehler ist aufgetreten:&nbsp;1

Log:

```
[error] SWAG_MIGRATION__WRITE_EXCEPTION_OCCURRED
A write exception has occurred
{
    "entity": "media_folder",
    "dataId": "f94bfbe372f84bcfa41cb049cdff297d",
    "error": {
        "code": "76454e69-502c-46c5-9643-f447d837c4d5",
        "status": "400",
        "detail": "Dieser Wert sollte gr\u00f6\u00dfer oder gleich 1 sein.",
        "template": "This value should be {{ limit }} or more.",
        "meta": {
            "parameters": {
                "{{ value }}": "0",
                "{{ limit }}": "1"
            }
        },
        "source": {
            "pointer": "\/4\/configuration\/mediaThumbnailSizes\/3\/mediaThumbnailSize\/height"
        }
    }
}

[error] SWAG_MIGRATION_RUN_EXCEPTION
An exception occurred
Entity: product, sourceId: f7c8b5b295b246db8c1075ae53564c35
An exception occurred while executing 'INSERT INTO `media` (`id`, `media_folder_id`, `created_at`) VALUES (?, ?, ?)' with params ["\xd0\xa2\x6f\x12\xd7\x4b\x4a\x74\x9e\xbc\x38\x3f\xbb\x0a\xc9\x49", "\xcb\x23\x6c\x55\x3e\x3d\x47\x23\x88\x73\x68\xcb\xbb\x90\x81\xd7", "2019-12-20 22:33:29.675"]:SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`d02f29aa`.`media`, CONSTRAINT `fk.media.media_folder_id` FOREIGN KEY (`media_folder_id`) REFERENCES `media_folder` (`id`) ON DELETE SET NULL)

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [21. Dezember 2019 um 09:28 UTC](https://forum.shopware.com/t/migrationsassistent-0-40-0-importiert-nur-1-produkte/63663/2 "2019-12-21T09:28:02Z")

</div>

Welchen Adapter hast du genommen? Lokal oder per API?

Am besten schickst du mal einen dump an [forum@shopware.com](mailto:forum@shopware.com) dann können die Kollegen sich das im neuen Jahr mal im Detail ansehen.

Scheint zumindest laut Fehlermeldung ein Problem mit den Bildern zu sein.
