Error while saving single type: Invalid input data. Please verify unique constraints

Strapi team, any advice here?

We’ve hit this in our testing environment multiple times and it’s the #1 source of concern for deploying changes to production. When this issue strikes it makes it impossible to edit existing content – can’t save any changes.

Besim’s report above seems to indicate that there’s something about model (and DB) history that can cause it. We’re reading cosole logs and DB logging and don’t see any indication of which constraint Strapi thinks is being violated.

FWIW the current model I’m seeing this happen on only has a single unique field and that field definitely isn’t the cause (can’t save existing content no matter what I enter in that field).

4 Likes