# Lokale Migration mit Fehler: Return value must be of type string

**URL:** <https://forum.shopware.com/t/lokale-migration-mit-fehler-return-value-must-be-of-type-string/100828>\
**Category:** Shopware 6 (German)\
**Created:** [11. August 2023 um 11:22 UTC](https://forum.shopware.com/t/lokale-migration-mit-fehler-return-value-must-be-of-type-string/100828 "2023-08-11T11:22:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [11. August 2023 um 11:22 UTC](https://forum.shopware.com/t/lokale-migration-mit-fehler-return-value-must-be-of-type-string/100828/1 "2023-08-11T11:22:14Z")

</div>

Heute mal eine lokale Migration versucht. Hat gar nicht funktioniert. Etliche Fehler wie:

```auto
Entity: language, sourceId: -
SwagMigrationAssistant\Migration\Logging\Log\ExceptionRunLog::__construct(): Argument #4 ($sourceId) must be of type ?string, int given, called in .../SwagMigrationAssistant/Migration/Service/MigrationDataConverter.php on line 144

[error] SWAG_MIGRATION_RUN_EXCEPTION
An exception occurred
Entity: category, sourceId: -
SwagMigrationAssistant\Profile\Shopware\Converter\ShopwareConverter::getSourceIdentifier(): Return value must be of type string, int returned

[error] SWAG_MIGRATION_RUN_EXCEPTION
An exception occurred
Entity: customer_group, sourceId: -
SwagMigrationAssistant\Profile\Shopware\Converter\ShopwareConverter::getSourceIdentifier(): Return value must be of type string, int returned

[error] SWAG_MIGRATION_RUN_EXCEPTION
An exception occurred
Entity: sales_channel, sourceId: -
SwagMigrationAssistant\Profile\Shopware\Converter\ShopwareConverter::getSourceIdentifier(): Return value must be of type string, int returned

```

Zum Einsatz kam der Migrations-Assistent 4.2.5 weil SW 6.4
