cancel
Showing results for 
Search instead for 
Did you mean: 
1WSCGomez
Moderator
Moderator

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
  • Incorrect Match Config
  • Incorrect Model Config

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:

1WSCGomez_3-1796389759060.png

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:

1WSCGomez_4-1796389798787.png

Below screenshot displays UI Message, when duplicate entity comes for create:

1WSCGomez_5-1796389853331.png

Please post your questions in the comments section.

Version history
Revision #:
1 of 1
Last update:
13 hours ago
Updated by:
 
Contributors