# Artikelneuanlange über RestAPI nicht mehr möglich

**URL:** <https://forum.shopware.com/t/artikelneuanlange-uber-restapi-nicht-mehr-moglich/20165>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [8. Mai 2014 um 11:46 UTC](https://forum.shopware.com/t/artikelneuanlange-uber-restapi-nicht-mehr-moglich/20165 "2014-05-08T11:46:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadis](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@kadis](https://forum.shopware.com/u/kadis)\
**Post date:** [8. Mai 2014 um 11:46 UTC](https://forum.shopware.com/t/artikelneuanlange-uber-restapi-nicht-mehr-moglich/20165/1 "2014-05-08T11:46:52Z")

</div>

Hallo, in der Version 4.2.3 scheint es nicht mehr möglich zu sein, über die RestAPI neue Artikel anzulegen. (Komplette Neuinstallation) Hier bekomme ich nur noch ein SQL Fehler, das die articleID fehlt. Ist ja auch klar das die fehlt. Der Artikel ist ja auch neu. Eingrenzen konnte ich es auf „packUnit“, da hier wohl Stück mit „ü“ vorhanden ist, scheint er aus zusteigen. Wenn ich es weg lasse, klappt der Aufruf. Ein utf8\_encode oder utf8\_decode klappt hier leider nicht. Aufruf: `$client-\>post('articles', $xml);` $xml = [code]Array ( [KaDIS-Artikelsteuerung] =\> aktiv [active] =\> 1 [mainDetail] =\> Array ( [number] =\> 100011 [prices] =\> Array ( [0] =\> Array ( [customerGroupKey] =\> EK [price] =\> 1.39 [pseudoPrice] =\> 0 [basePrice] =\> 0 [from] =\> 1 [to] =\> beliebig ) ) [supplierNumber] =\> 7000000 [kind] =\> 1 [active] =\> 1 [weight] =\> 0.020 [width] =\> 2.714 [len] =\> 2.714 [height] =\> 2.714 [minPurchase] =\> 1 [purchaseUnit] =\> 1.0000 [referenceUnit] =\> 1.000 [unit] =\> Array ( [unit] =\> Stück [name] =\> Stück ) [packUnit] =\> Stück [shippingTime] =\> 5 [attribute] =\> Array ( [attr3] =\> 26 ) ) [name] =\> Modell Giraffe [description] =\> Modell Giraffe Kinderknöpfe [descriptionLong] =\>

**Kinderkn&ouml,pfe Giraffe mit &Ouml,se.**

**Der Preis gilt f&uuml,r 12 St&uuml,ck.**

[keywords] =\> Kinderknopf, Giraffe, [supplierId] =\> 1 [taxId] =\> 1 [related] =\> [similar] =\> [/code] Fehlermeldung: ` No Success - Errormesage: An exception occurred while executing 'INSERT INTO s\_articles\_details (articleID, unitID, ordernumber, suppliernumber, kind, additionaltext, active, instock, stockmin, weight, width, length, height, ean, position, minpurchase, purchasesteps, maxpurchase, purchaseunit, referenceunit, packunit, shippingfree, releasedate, shippingtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params [null, 19, "100011", "7000000", 1, null, "1", null, null, "0.020", "2.714", "2.714", "2.714", null, 0, "1", null, null, "1.0000", "1.000", "St\u00fcck", 0, null, "5"]: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'articleID' cannot be null -` BugTracker: [http://jira.shopware.de?ticket=SW-8483](http://jira.shopware.de?ticket=SW-8483)
