# Customers streams unvollständig

**URL:** <https://forum.shopware.com/t/customers-streams-unvollstandig/47780>\
**Category:** Allgemein\
**Created:** [23. August 2017 um 20:42 UTC](https://forum.shopware.com/t/customers-streams-unvollstandig/47780 "2017-08-23T20:42:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ailurus](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@Ailurus](https://forum.shopware.com/u/Ailurus)\
**Post date:** [23. August 2017 um 20:42 UTC](https://forum.shopware.com/t/customers-streams-unvollstandig/47780/1 "2017-08-23T20:42:07Z")

</div>

Hallo,

Einen customer stream nach „hat Adresse mit Land“ habe ich eingestellt, und nur ca. die hälfte von den Kunden werden under dem Stream gelistet.

Also z.B. : 14 aus 28 Kunden aus Korea werden in die linke Spalte gelistet, obwohl die anderen schon in den rechten Spalte filtriert bzw. sichtbar sind.

Gibt es da ein problem mit der SQL?

Das problem gab es schon unter 5.3.1; nun auch unter 5.3.2

Danke im Voraus!

---

<div class="post-metadata">

**Author:** ![Ailurus](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@Ailurus](https://forum.shopware.com/u/Ailurus)\
**Post date:** [24. August 2017 um 12:03 UTC](https://forum.shopware.com/t/customers-streams-unvollstandig/47780/2 "2017-08-24T12:03:57Z")

</div>

ok, ich kriege dazu die folgende Meldung bei jede zweite Cronjob:

```
Oops! An error has occurred!

The following notes should help you.
An exception occurred while executing 'INSERT INTO s_customer_streams_mapping (stream_id, customer_id) VALUES (:streamId, :customerId)' with params ["3", 100]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '3-100' for key 'stream_id' in vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php on line 119
Stack trace:

#0 vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php(174): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(PDOException), 'INSERT INTO s_c...', Array)
#1 engine/Shopware/Components/CustomerStream/StreamIndexer.php(89): Doctrine\DBAL\Statement->execute(Array)
#2 vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1108): Shopware\Components\CustomerStream\StreamIndexer->Shopware\Components\CustomerStream\{closure}(Object(Doctrine\DBAL\Connection))
#3 engine/Shopware/Components/CustomerStream/StreamIndexer.php(99): Doctrine\DBAL\Connection->transactional(Object(Closure))
#4 engine/Shopware/Bundle/CustomerSearchBundleDBAL/Indexing/CronJobSubscriber.php(102): Shopware\Components\CustomerStream\StreamIndexer->populate('3', Object(Shopware\Bundle\CustomerSearchBundleDBAL\Indexing\CronJobProgressHelper))
#5 engine/Library/Enlight/Event/Handler/Default.php(91): Shopware\Bundle\CustomerSearchBundleDBAL\Indexing\CronJobSubscriber->refresh(Object(Shopware_Components_Cron_CronJob))
#6 engine/Library/Enlight/Event/EventManager.php(251): Enlight_Event_Handler_Default->execute(Object(Shopware_Components_Cron_CronJob))
#7 engine/Library/Enlight/Components/Cron/Manager.php(259): Enlight_Event_EventManager->notifyUntil('Shopware_CronJo...', Object(Shopware_Components_Cron_CronJob))
#8 engine/Shopware/Plugins/Default/Core/Cron/Cron.php(52): Enlight_Components_Cron_Manager->runJob(Object(Enlight_Components_Cron_Job))
#9 engine/Library/Enlight/Controller/Action.php(159): Shopware_Controllers_Backend_Cron->indexAction()
#10 engine/Library/Enlight/Controller/Dispatcher/Default.php(530): Enlight_Controller_Action->dispatch('indexAction')
#11 engine/Library/Enlight/Controller/Front.php(223): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp))
#12 engine/Shopware/Kernel.php(184): Enlight_Controller_Front->dispatch()
#13 vendor/symfony/http-kernel/HttpCache/HttpCache.php(491): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#14 engine/Shopware/Components/HttpCache/AppCache.php(268): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)
#15 vendor/symfony/http-kernel/HttpCache/HttpCache.php(258): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true)
#16 engine/Shopware/Components/HttpCache/AppCache.php(105): Symfony\Component\HttpKernel\HttpCache\HttpCache->pass(Object(Symfony\Component\HttpFoundation\Request), true)
#17 shopware.php(118): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request))

```

habe dann die s\_customer\_strams\_mapping gelöcht, cache manuell geleert, und alles von Vorne neu gemacht. Leider immer noch ohne Erfolg.

---

<div class="post-metadata">

**Author:** ![SebastianKloepper](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sebastiankloepper/32/21435_2.png) [@SebastianKloepper](https://forum.shopware.com/u/SebastianKloepper)\
**Post date:** [24. August 2017 um 13:22 UTC](https://forum.shopware.com/t/customers-streams-unvollstandig/47780/3 "2017-08-24T13:22:34Z")

</div>

Hallo,

das „Adresse hat Land“ Problem konnte ich ebenfalls nachstellen. Das haben wir auch als Ticket inkl. Fehlermeldung vorliegen und schauen wir uns fürs nächste Update an.

Sebastian

---

<div class="post-metadata">

**Author:** ![Ailurus](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@Ailurus](https://forum.shopware.com/u/Ailurus)\
**Post date:** [24. August 2017 um 13:30 UTC](https://forum.shopware.com/t/customers-streams-unvollstandig/47780/4 "2017-08-24T13:30:36Z")

</div>

Danke Sebastian. Irgendwie scheint es nicht für alle Länder gleich probelmatisch zu sein, aber bei mir sind z.B. USA und Korea problematisch. (Habe nicht alle Länder ausprobiert). Deutschland läuft z.B. ohne Problem.

&nbsp;

---

<div class="post-metadata">

**Author:** ![sommunikation](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@sommunikation](https://forum.shopware.com/u/sommunikation)\
**Post date:** [25. Februar 2019 um 17:06 UTC](https://forum.shopware.com/t/customers-streams-unvollstandig/47780/5 "2019-02-25T17:06:08Z")

</div>

Und seit dem Update heute (2 Jahre später) auf 5.5.7 habe ich diesen Fehler auch … ☹ Hilfe!

---

<div class="post-metadata">

**Author:** ![giedeshop](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/giedeshop/32/10570_2.png) [@giedeshop](https://forum.shopware.com/u/giedeshop)\
**Post date:** [27. September 2019 um 18:17 UTC](https://forum.shopware.com/t/customers-streams-unvollstandig/47780/6 "2019-09-27T18:17:04Z")

</div>

Hallo zusammmen

habe auch das Problem - der customer stream nach Länderauswah ist unvollständig. Nutze Version 5.5.8

Gibt es eine Lösung ?

Danke
