strapi-plugin-content-versioning
strapi-plugin-content-versioning copied to clipboard
Strapi Localization Error: 'The related entity doesn't exist or the entity already exists in this locale' When Saving Localized Content
Bug Report: Strapi Localization Error on Saving Localized Content
Describe the Bug
When attempting to save a localized version of content in Strapi, an error message is encountered stating, "The related entity doesn't exist or the entity already exists in this locale." This issue occurs despite the primary entity existing in the default locale, and it appears when trying to add or update localized content in the any additional locale.
Steps to Reproduce the Behavior
- Ensure the primary entity exists in the default locale in Strapi.
- Switch to the any locale in the Strapi admin panel.
- Try to create or update an entity in this locale.
- Encounter the error message: "The related entity doesn't exist or the entity already exists in this locale."
Expected Behavior
The expected behavior is the successful creation or updating of the localized content in any locale without encountering any errors, assuming the primary entity in the default locale exists.
Screenshots
System
- Node.js version: [v16.20.2]
- NPM version: [v8.19.4]
- Strapi version: [v4.15.4]
- Database: [sqlite]
- Operating System: [macos]