Shopware: UpdateCommand vs InsertCommand

You get a weird error, because you try to update a product, but for some reason instead you get:

Expected command for "product" to be "Shopware\Core\Framework\DataAbstractionLayer\Write\Command\UpdateCommand". (Got: Shopware\Core\Framework\DataAbstractionLayer\Write\Command\InsertCommand)

In my case, I had the wrong seperator. Shopware uses ; as a default, but LibreOffice is using , as a default. My laziness cost me nearly 2 hours – don’t be me 🙂

One thought on “Shopware: UpdateCommand vs InsertCommand

  1. Oh my god, this is so dumb. Happened to me when exporting from Shopware, opened in Libre with BOTH comma and semi-colon checked and tried to import that file again. Luckily a Google search listed you in the first 4 results. THANK YOU!

Leave a Reply