# API Migration from 5.4 to 6.4.3.0 not working

**URL:** <https://forum.shopware.com/t/api-migration-from-5-4-to-6-4-3-0-not-working/89767>\
**Category:** Shopware 6 (English)\
**Created:** [15. August 2021 um 09:25 UTC](https://forum.shopware.com/t/api-migration-from-5-4-to-6-4-3-0-not-working/89767 "2021-08-15T09:25:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbugg](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@dbugg](https://forum.shopware.com/u/dbugg)\
**Post date:** [15. August 2021 um 09:25 UTC](https://forum.shopware.com/t/api-migration-from-5-4-to-6-4-3-0-not-working/89767/1 "2021-08-15T09:25:31Z")

</div>

SwagMigrationAssistant says that everything is migrated and it is now indexing. However, there is only one product migrated (out of 550), translations are made into categories. All is mess.

From the log:

[warning] SWAG\_MIGRATION\_CANNOT\_CONVERT\_CHILD\_PRODUCT\_MEDIA\_ENTITY

[error] SWAG\_MIGRATION\_RUN\_EXCEPTION  
An exception occurred  
Entity: number\_range, sourceId: e298cf7965ef4508996b4b75b1ab5723  
An exception occurred while executing ‚INSERT INTO `number_range_sales_channel` (`id`, `number_range_id`, `sales_channel_id`, `number_range_type_id`, `created_at`) VALUES (‚OhLnd:‘,‚BlI[\58‘,‚DG\Z;‘,‚a% L&g‘,‚2021-08-15 09:19:32.493‘);‘:SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`sw6`.`number_range_sales_channel`, CONSTRAINT `fk.number_range_sales_channel.sales_channel_id` FOREIGN KEY (`sales_channel_id`) REFERENCES `sales_channel` (`id`) ON DELETE CASCADE ON UPDATE C)

[error] SWAG\_MIGRATION\_\_WRITE\_EXCEPTION\_OCCURRED  
A write exception has occurred  
{  
„entity“: „main\_variant\_relation“,  
„dataId“: „21f4bf04f8c3415f976a942a920efee7“,  
„error“: {  
„code“: „c1051bb4-d103-4f74-8988-acbcafc7fdc3“,  
„status“: „400“,  
„detail“: „This value should not be blank.“,  
„template“: „This value should not be blank.“,  
„meta“: {  
„parameters“: {  
„{{ value }}“: „null“  
}  
},  
„source“: {  
„pointer“: „/22/translations/2fbb5fe2e29a4d70aa5854ce7ce3e20b/name“  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![Birgit](https://avatars.discourse-cdn.com/v4/letter/b/c5a1d2/32.png) [@Birgit](https://forum.shopware.com/u/Birgit)\
**Post date:** [11. September 2024 um 06:40 UTC](https://forum.shopware.com/t/api-migration-from-5-4-to-6-4-3-0-not-working/89767/3 "2024-09-11T06:40:43Z")

</div>

Hallo dbugg,  
wir sind auch am Migrieren und der Shopware Support konnte oder wollte mal wieder nicht helfen, obwohl wir die Evolve Version haben. Hast du Insights, die du teilen kannst, da wir gleiche Fehler haben, wie du. Das wäre super. Vielen Dank.  
VG  
Birgit
