01.06.2022・TechStuff
01.06.2022・TechStuff

Shopware: UpdateCommand vs InsertCommand

Fabian Blechschmidt

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 🙂