# Problem: shopware\_attribute.crud\_service und Import/Export Advanced

**URL:** <https://forum.shopware.com/t/problem-shopware-attribute-crud-service-und-import-export-advanced/44404>\
**Category:** Programmierung\
**Created:** [11. März 2017 um 08:56 UTC](https://forum.shopware.com/t/problem-shopware-attribute-crud-service-und-import-export-advanced/44404 "2017-03-11T08:56:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![webarbeit](https://avatars.discourse-cdn.com/v4/letter/w/b487fb/32.png) [@webarbeit](https://forum.shopware.com/u/webarbeit)\
**Post date:** [11. März 2017 um 08:56 UTC](https://forum.shopware.com/t/problem-shopware-attribute-crud-service-und-import-export-advanced/44404/1 "2017-03-11T08:56:07Z")

</div>

Guten Morgen zusammen,

über folgenden Code-Schnipsel erstelle ich neues Attribut für Artikel. Funktioniert alles soweit einwandfrei.

```
function createAttributes()
{
	$service = $this->get('shopware_attribute.crud_service');
	$service->update('s_articles_attributes', 'webarbeit_article_data', 'combobox', ['label' => '...entfernt...', 'supportText' => '...entfernt...', 'helpText' => '',
	'translatable' => true,
	'displayInBackend' => true,
	'entity' => 'Shopware\Models\Article\Article',
	'position' => 100,
	'custom' => true,
	'arrayStore' => [...entfernt...);
}

```

Nun binde ich dieses Attribut in ein Profil von&nbsp;Import/Export Advanced ein (getest mit neues Feld und neues Attribut).

Jeweils tritt beim Export folgender Fehler auf:

```
[Semantical Error] line 0, col 2453 near 'webarbeitArticleData': Error: Class Shopware\Models\Attribute\Article has no field or association named webarbeitArticleData

```

Hat jemand eine Idee, wie der Fehler beseitigt werde kann? Und das Attribut exportiert wird.

Viele Grüße und Danke vorab,  
Frank

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [11. März 2017 um 09:22 UTC](https://forum.shopware.com/t/problem-shopware-attribute-crud-service-und-import-export-advanced/44404/2 "2017-03-11T09:22:21Z")

</div>

Hast du die Attributmodels bei Installation deines Plugins neu generiert?  
Kannst du auch manuell machen, indem du in der Freitextfeld-Verwaltung die s\_article\_attributes auswählst und das Model neu generierst. Die Meldung sagt erstmal nur, dass der Model Cache deine neue Spalte nicht kennt.

---

<div class="post-metadata">

**Author:** ![kanuma](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kanuma](https://forum.shopware.com/u/kanuma)\
**Post date:** [21. Juni 2018 um 11:11 UTC](https://forum.shopware.com/t/problem-shopware-attribute-crud-service-und-import-export-advanced/44404/3 "2018-06-21T11:11:12Z")

</div>

Ich versuche über das Export Modul (CSV) das Freitextfeld „{$sArticle.plenty\_connector\_free4}“ zu exportieren, leider ist dieses immer leer … was kann man hier tun ?
