OMS - An error message appears when I try to delete a product from the catalog

Modified on Tue, 10 Oct, 2023 at 10:13 AM

If you encounter the error message "sylius.resource.error rms: duplicate key value violates unique constraint 'XXXXXXXXX'" when trying to delete a product from the Sylius catalog, it means that this product was already added to a user's shopping cart.


To successfully remove the product, you need to create a Jira ticket on bug.lizee.io to request its deletion.



In most cases, it's often preferred to simply deactivate products rather than deleting them. You can do this by unchecking the "Enabled" option under the product code. This way, the product will still exist in the catalog but won't be visible or available for purchase until you decide to re-enable it.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article