E11000 duplicate key error collection: *** index: _id_dup key: { : “617141a3cd9d0a65d02f6c23” }
The reason is that:
assign(record, attrs);
await new VkPrize(newRecord).save();
Attrs contains the _id field, causing the same error to be reported when the _id is executed again.
Read More:
- [Solved] Milvus Error: [ERROR][SERVER][TakeToEUse milvus.has_collection to verify whether the collection exists
- Ant Design Vue-Table Error: warning.js?2149:7 [How to Solve]
- [Solved] ORA-21525: attribute number or (collection element at index) string violated its constraints
- Laravel model save if the table has no ID field Error [How to Solve]
- After configuring the ES password, logstash starts with error 401?
- [Solved] TensorFlow Error: ‘Tensor‘ object does not support item assignment
- Report Duplicate keys detected: ‘0’. This may cause an update error in VUE and the solution
- [Solved] MongoDB Error: TypeError: Object of type ObjectId is not JSON serializable
- How to Solve ES error: “illegal_argument_exception”
- Nexus3 builds Jenkins error: Not authorized (Downloading dependent jar package error)
- Element Error when await is used in UI form submission [Solved]
- NUXT Run generate error: is not in cwd [How to Solve]
- How to Solve Error: avoided redundant navigation to current location: “index/user”
- Template cannot be rendered due to the joint query of populate in mongoose: syntax error: unexpected token r in JSON at position 0
- How to Solve Logstash error: failed to execute action
- [Solved] Flinkcdc error: tried to access field com.mysql.cj.CharsetMapping.COLLATION_INDEX_TO_COLLATION_NAME…
- IdentityServer4 Error: well-known/openid-configuration: HTTPS required
- [Solved] nacos Startup Error: Error creating bean with name ‘authFilterRegistration‘ defined in class path resource
- ES Error: Alternatively, set fielddata=true on [How to Solve]
- Elasticsearch 6.2.3 version executes aggregation error Fielddata is disabled on text fields by default