# \[Gelöst\]\[ArticleUpdate\] Shopware Tax by taxrate 1 not found

**URL:** <https://forum.shopware.com/t/gelost-articleupdate-shopware-tax-by-taxrate-1-not-found/48637>\
**Category:** Programmierung\
**Created:** [4. Oktober 2017 um 14:42 UTC](https://forum.shopware.com/t/gelost-articleupdate-shopware-tax-by-taxrate-1-not-found/48637 "2017-10-04T14:42:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_Geloschter\_Benutze7](https://avatars.discourse-cdn.com/v4/letter/_/cdc98d/32.png) [@\_Geloschter\_Benutze7](https://forum.shopware.com/u/_Geloschter_Benutze7)\
**Post date:** [4. Oktober 2017 um 14:42 UTC](https://forum.shopware.com/t/gelost-articleupdate-shopware-tax-by-taxrate-1-not-found/48637/1 "2017-10-04T14:42:42Z")

</div>

Hallo,&nbsp;

ich versuche über eine [Schnittstelle](https://github.com/LeadCommerceDE/shopware-sdk)(LeadCommerce Shopware SDK), Artikel über die REST-API anzupassen wie z.B. den Preis.&nbsp;  
Über die Schnittstelle habe ich mir den gewünschten Artikel geholt, dort habe ich dann den&nbsp;neuen Preis gesetzt und versucht über einen PUT request den Artikel upzudaten.&nbsp;

Bekomme aber nur eine Fehlermeldung vom Shopware Backend:&nbsp;

```
Fatal error: Uncaught exception 'GuzzleHttp\Exception\ServerException' with message 'Server error: `PUT http://url/api/articles/id` resulted in a `500 Internal Server Error` response: {"error":{"type":"Shopware\\Components\\Api\\Exception\\CustomValidationException","message":"Tax by taxrate 1 not found (truncated...) ' in ~\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php:113 Stack trace: #0 ~\vendor\guzzlehttp\guzzle\src\Middleware.php(65): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response)) #1 ~\vendor\guzzlehttp\promises\src\Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response)) #2 ~\vendor\guzzlehttp\promises\src\Promise.php(156): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), in ~\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php on line 113

```

&nbsp;Hier noch das prices Array:

```
[prices] => Array
                (
                    [0] => Array
                        (
                            [id] => X
                            [articleId] => X
                            [articleDetailsId] => X
                            [customerGroupKey] => EK
                            [from] => 1
                            [to] => beliebig
                            [price] => 37.5
                            [pseudoPrice] => 0
                            [percent] => 0
                            [customerGroup] => Array
                                (
                                    [id] => 1
                                    [key] => EK
                                    [name] => Shopkunden
                                    [tax] => 1
                                    [taxInput] => 1
                                    [mode] => 
                                    [discount] => 0
                                    [minimumOrder] => 10
                                    [minimumOrderSurcharge] => 5
                                )

                        )

                )

```

&nbsp;

Hat jemand eine Idee?

Mit freundlichen Grüßen,&nbsp;  
Brian&nbsp;

---

<div class="post-metadata">

**Author:** ![\_Geloschter\_Benutze7](https://avatars.discourse-cdn.com/v4/letter/_/cdc98d/32.png) [@\_Geloschter\_Benutze7](https://forum.shopware.com/u/_Geloschter_Benutze7)\
**Post date:** [5. Oktober 2017 um 10:07 UTC](https://forum.shopware.com/t/gelost-articleupdate-shopware-tax-by-taxrate-1-not-found/48637/2 "2017-10-05T10:07:15Z")

</div>

Update:&nbsp;  
Ich bebnutze nun die von Shopware bereitgestellte[Klasse](https://developers.shopware.com/developers-guide/rest-api/#using-the-rest-api-in-your-own-application)und bin einen Schritt weiter gekommen.  
Nun habe ich aber das Problem damit ich diese Meldung zurück bekomme:&nbsp;  
&nbsp;

```
"success" => false
"data" => array (
      "type" => "Shopware\Components\Api\Exception\CustomValidationException"
      "message" => "\Shopware\Models\Article\SeoCategory by id 4465 not found"
      "file" => "~/engine/Shopware/Components/Api/Resource/Resource.php"
      "line" => 396
    )
)

```

Wenn ich die SeoCategories im Array vom Artikel entferne, funktioniert es auch nicht.&nbsp; ![Undecided](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/8ae622c50104e84c5003fedfcc22572813a67b41.png "Undecided")  
&nbsp;

---

<div class="post-metadata">

**Author:** ![\_Geloschter\_Benutze7](https://avatars.discourse-cdn.com/v4/letter/_/cdc98d/32.png) [@\_Geloschter\_Benutze7](https://forum.shopware.com/u/_Geloschter_Benutze7)\
**Post date:** [5. Oktober 2017 um 11:04 UTC](https://forum.shopware.com/t/gelost-articleupdate-shopware-tax-by-taxrate-1-not-found/48637/3 "2017-10-05T11:04:34Z")

</div>

Kann geschlossen werden, habe das Problem gelöst.&nbsp;
