Skip to content

Error on template creation/edition #8600

@txau

Description

@txau

Not sure how to reproduce. I created a template with a series of properties and saved. Then edited the template and added more properties and modified others. When attempting to save I got:

Image

As a user, I have no idea what the error is about, we need better feedback.

I checked the error logs, and this appears to be a managed error, so no trace on the notifications. Further search lead me to:

 "errorResponse": {
  "message": "E11000 duplicate key error collection: xxxx.translationsV2 index: language_1_key_1_context.id_1 dup key: { language: \"en\", key: \"Question\", context.id: \"691b9d330b548b7bd933af67\" }",
  "code": 11000,
  "writeErrors": [
   {
    "code": 11000,
    "index": 0,
    "errmsg": "E11000 duplicate key error collection: xxxx.translationsV2 index: language_1_key_1_context.id_1 dup key: { language: \"en\", key: \"Question\", context.id: \"691b9d330b548b7bd933af67\" }",
    "op": {

The culprit seems to be, I modified the label for the title property to be the same as the label for the template title. Ideally, these are two translation keys totally different.

Also, ideally users get better error information.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions