# Integrity constraint violation: 1062 Duplicate entry '35-mobileLogo' ?

**URL:** <https://forum.shopware.com/t/integrity-constraint-violation-1062-duplicate-entry-35-mobilelogo/45717>\
**Category:** Allgemein\
**Created:** [12. Mai 2017 um 10:27 UTC](https://forum.shopware.com/t/integrity-constraint-violation-1062-duplicate-entry-35-mobilelogo/45717 "2017-05-12T10:27:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![myartstore](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@myartstore](https://forum.shopware.com/u/myartstore)\
**Post date:** [12. Mai 2017 um 10:27 UTC](https://forum.shopware.com/t/integrity-constraint-violation-1062-duplicate-entry-35-mobilelogo/45717/1 "2017-05-12T10:27:48Z")

</div>

Hallo, ich hoffe jemand kann mir helfen.

Ich wollte eben ein neues Theme anlegen und von einem bereits vorhanden ableiten. ImBackend erschien dann ein weißes Fenster, im error-report nachfolgende Meldung. Wer kann mir das erklären/helfen ? Danke im Voraus, Bernd

&nbsp;

ERROR

Message:

```
 PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '35-mobileLogo' for key 'template\_id\_name' in /html/shopware/vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php:165 Stack trace: #0 /html/shopware/vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php(165): PDOStatement-\>execute(NULL) #1 /html/shopware/engine/Library/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(281): Doctrine\DBAL\Statement-\>execute() #2 /html/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(1018): Doctrine\ORM\Persisters\Entity\BasicEntityPersister-\>executeInserts() #3 /html/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(378): Doctrine\ORM\UnitOfWork-\>executeInserts(Object(Doctrine\ORM\Mapping\ClassMetadata)) #4 /html/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(356): Doctrine\ORM\UnitOfWork-\>commit(NULL) #5 /html/shopware/engine/Shopware/Components/Form/Persister/Theme.php(61): Doctrine\ORM\EntityManager-\>flush() #6 /html/shopware/engine/Shopware/Components/Theme/Configurator.php(133): Shopware\Components\Form\Persister\Theme-\>save(Object(Shopware\Components\Form\Container\TabContainer), Object(Shopware\Models\Shop\Template)) #7 /html/shopware/engine/Shopware/Components/Theme/Installer.php(153): Shopware\Components\Theme\Configurator-\>synchronize(Object(Shopware\Themes\Responsivedash\Theme)) #8 /html/shopware/engine/Shopware/Components/Theme/Installer.php(116): Shopware\Components\Theme\Installer-\>synchronizeThemes() #9 /html/shopware/engine/Shopware/Controllers/Backend/Theme.php(195): Shopware\Components\Theme\Installer-\>synchronize() #10 /html/shopware/engine/Library/Enlight/Controller/Action.php(159): Shopware\_Controllers\_Backend\_Theme-\>listAction() #11 /html/shopware/engine/Library/Enlight/Controller/Dispatcher/Default.php(523): Enlight\_Controller\_Action-\>dispatch('listAction') #12 /html/shopware/engine/Library/Enlight/Controller/Front.php(223): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #13 /html/shopware/engine/Shopware/Kernel.php(182): Enlight\_Controller\_Front-\>dispatch() #14 /html/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(491): Shopware\Kernel-\>handle(Object(Enlight\_Controller\_Request\_RequestHttp), 1, true) #15 /html/shopware/engine/Shopware/Components/HttpCache/AppCache.php(266): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #16 /html/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(258): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #17 /html/shopware/engine/Shopware/Components/HttpCache/AppCache.php(103): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true) #18 /html/shopware/shopware.php(117): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #19 {main} Next Doctrine\DBAL\DBALException: An exception occurred while executing 'INSERT INTO s\_core\_templates\_config\_elements (type, name, position, default\_value, selection, field\_label, support\_text, allow\_blank, less\_compatible, attributes, container\_id, template\_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["theme-media-selection", "mobileLogo", 0, "s:47:\"frontend\/\_public\/src\/img\/logos\/logo--mobile.png\";", "N;", "\_\_smartphone\_\_", null, 1, 0, "a:1:{s:14:\"lessCompatible\";b:0;}", 651, 35]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '35-mobileLogo' for key 'template\_id\_name' in /html/shopware/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:119 Stack trace: #0 /html/shopware/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 /html/shopware/engine/Library/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(281): Doctrine\DBAL\Statement-\>execute() #2 /html/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(1018): Doctrine\ORM\Persisters\Entity\BasicEntityPersister-\>executeInserts() #3 /html/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(378): Doctrine\ORM\UnitOfWork-\>executeInserts(Object(Doctrine\ORM\Mapping\ClassMetadata)) #4 /html/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(356): Doctrine\ORM\UnitOfWork-\>commit(NULL) #5 /html/shopware/engine/Shopware/Components/Form/Persister/Theme.php(61): Doctrine\ORM\EntityManager-\>flush() #6 /html/shopware/engine/Shopware/Components/Theme/Configurator.php(133): Shopware\Components\Form\Persister\Theme-\>save(Object(Shopware\Components\Form\Container\TabContainer), Object(Shopware\Models\Shop\Template)) #7 /html/shopware/engine/Shopware/Components/Theme/Installer.php(153): Shopware\Components\Theme\Configurator-\>synchronize(Object(Shopware\Themes\Responsivedash\Theme)) #8 /html/shopware/engine/Shopware/Components/Theme/Installer.php(116): Shopware\Components\Theme\Installer-\>synchronizeThemes() #9 /html/shopware/engine/Shopware/Controllers/Backend/Theme.php(195): Shopware\Components\Theme\Installer-\>synchronize() #10 /html/shopware/engine/Library/Enlight/Controller/Action.php(159): Shopware\_Controllers\_Backend\_Theme-\>listAction() #11 /html/shopware/engine/Library/Enlight/Controller/Dispatcher/Default.php(523): Enlight\_Controller\_Action-\>dispatch('listAction') #12 /html/shopware/engine/Library/Enlight/Controller/Front.php(223): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #13 /html/shopware/engine/Shopware/Kernel.php(182): Enlight\_Controller\_Front-\>dispatch() #14 /html/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(491): Shopware\Kernel-\>handle(Object(Enlight\_Controller\_Request\_RequestHttp), 1, true) #15 /html/shopware/engine/Shopware/Components/HttpCache/AppCache.php(266): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #16 /html/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(258): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #17 /html/shopware/engine/Shopware/Components/HttpCache/AppCache.php(103): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true) #18 /html/shopware/shopware.php(117): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #19 {main}

```

Time:

```
 2017-05-12T09:49:45.019329+0200

```

Channel:

```
 core

```

request:

```
 { "uri": "/backend/Theme/list?\_dc=1494575384513&page=1&start=0&limit=20&group=%5B%7B%22property%22%3A%22version%22%2C%22direction%22%3A%22DESC%22%7D%5D&sort=%5B%7B%22property%22%3A%22version%22%2C%22direction%22%3A%22DESC%22%7D%5D", "method": "GET", "query": { "\_dc": "1494575384513", "page": "1", "start": "0", "limit": "20", "group": "[{\"property\":\"version\",\"direction\":\"DESC\"}]", "sort": "[{\"property\":\"version\",\"direction\":\"DESC\"}]", "module": "backend", "controller": "Theme", "action": "list" }, "post": [] }

```

shop:

```
 No shop data available

```

session:

```
 { "userId": "50", "roleId": "1" }
```
