13 hours ago
How to troubleshoot when import for update goes as create?
When you import multiple entities for update operation into the application using an Excel Template, duplicate entities may get created. This issue generally is caused due to incorrect data or incorrect configuration. Following are the possible issues:
Incorrect file
Every import is Batch Operation. If same importing file is having Duplicate Entities for update, then it will create duplicate entities. The entity uniqueness is identified through any attribute, which can be configured either in Model or Match Config.
Incorrect Model Config
If any of the attributes are not set as is identifier, then all the requests will be treated as Create. This can be validated through getting the models, using the below sample query.
Payload:
{
"params": {
"query": {
"id": "sku_entityManageModel",
"filters": {
"typesCriterion": [
"entityManageModel"
]
}
},
"fields": {
"attributes": [
"_ALL"
],
"relationships": [
"_ALL"
]
}
}
}
URL: /api/entitymodelservice/get
Following is the response for the above query:
Incorrect Match Config
Check Match config condition by using below sample query:
Payload:
{
"params": {
"query": {
"filters": {
"typesCriterion": [
"matchConfig"
]
}
},
"fields": {
"attributes": [
"_All"
]
}
}
}
URL: /api/configurationservice/get
Following is the response for the above query:
Below screenshot displays UI Message, when duplicate entity comes for create:
Please post your questions in the comments section.