# Fehler bei Produktausgabe nach erfolgreicher Migration

**URL:** <https://forum.shopware.com/t/fehler-bei-produktausgabe-nach-erfolgreicher-migration/70928>\
**Category:** Installation / Einstieg\
**Created:** [16. November 2020 um 10:59 UTC](https://forum.shopware.com/t/fehler-bei-produktausgabe-nach-erfolgreicher-migration/70928 "2020-11-16T10:59:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adelbert](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@Adelbert](https://forum.shopware.com/u/Adelbert)\
**Post date:** [16. November 2020 um 10:59 UTC](https://forum.shopware.com/t/fehler-bei-produktausgabe-nach-erfolgreicher-migration/70928/1 "2020-11-16T10:59:56Z")

</div>

Hallo zusammen,

ich habe soeben eine Migration von Shopware 5.4 auf 6.3 erfolgreich durchgeführt. Wenn ich nun Produkte im Frontend ausgeben will, erhalte ich folgende Fehlermeldung:

```
[2020-11-16 10:48:22] request.CRITICAL: Uncaught PHP Exception TypeError: "Argument 1 passed to Shopware\Core\Content\Product\SalesChannel\Price\ProductPriceDefinitionBuilder::getCurrencyPrice() must be an instance of Shopware\Core\Framework\DataAbstractionLayer\Pricing\PriceRuleEntity, null given, called in /var/www/clients/client1/web4/web/vendor/shopware/core/Content/Product/SalesChannel/Price/ProductPriceDefinitionBuilder.php on line 154" at /var/www/clients/client1/web4/web/vendor/shopware/core/Content/Product/SalesChannel/Price/ProductPriceDefinitionBuilder.php line 205 {"exception":"[object] (TypeError(code: 0): Argument 1 passed to Shopware\\Core\\Content\\Product\\SalesChannel\\Price\\ProductPriceDefinitionBuilder::getCurrencyPrice() must be an instance of Shopware\\Core\\Framework\\DataAbstractionLayer\\Pricing\\PriceRuleEntity, null given, called in /var/www/clients/client1/web4/web/vendor/shopware/core/Content/Product/SalesChannel/Price/ProductPriceDefinitionBuilder.php on line 154 at /var/www/clients/client1/web4/web/vendor/shopware/core/Content/Product/SalesChannel/Price/ProductPriceDefinitionBuilder.php:205)"} []

```

Muss ich etwas mit den Preisen anpassen? Wenn ja wo?

---

<div class="post-metadata">

**Author:** ![Adelbert](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@Adelbert](https://forum.shopware.com/u/Adelbert)\
**Post date:** [16. November 2020 um 12:53 UTC](https://forum.shopware.com/t/fehler-bei-produktausgabe-nach-erfolgreicher-migration/70928/2 "2020-11-16T12:53:38Z")

</div>

“Fehler” gefunden. Nach der Migration stand in der Spalte quantity\_end der Tabelle product\_price 0 anstelle von NULL drin. Dadurch greift der If Check in Zeile 169 im ProductPriceDefinitionBuilder nicht:

```
$end = $price->getQuantityEnd() ?? $quantity + 1;

```

&nbsp;
