Shopware 6 Administration Error 'The String is not a valid UUID'

337 Views Asked by At

I am trying to insert data into a custom entity via the administration. I generated the UUID via Utils.createId() function. If I insert data without the id, everything works perfectly, but when I insert data along with my own generated Id, I get the error

'FRAMEWORK__WRITE_CONSTRAINT_VIOLATION', status: '400', detail: 'The string "018A41183FDB7460896E02F5F3EE7D8E" is not a valid uuid.', template: 'The string "{{ stri

1

There are 1 best solutions below

0
dneustadt On

The UUID format was recently changed to v7.

Update the dependencies and re-build the administration.

Depending on your setup either run

composer init:js
composer build:js:admin

or

./bin/build-administration.sh