Skip to main content

Empty string values in JSON import, are seen as value when disallowing duplicate, causing false errors

Answered

Comments

3 comments

  • Archana Mehta
    Rising star (Silver)
    Expert (Gold)

    Hi Erik,

    I understand your point of string being passed as empty and due to duplicate check enabled , its considering as repeated value of empty.

    You mentioned that PIM identifier attribute is part of match set with GTIN ,

    I have few questions:

    Is it in same match set sequence? 

    Is your GTIN being duplicated , so you added like combined Match set of PIM identifier and GTIN ?

    IF GTIN is unique then did you try not passing the below block at all in import , instead of passing it as ""

     "pimidentifierstring": {
                            "values": [
                                {
                                    "value": "",
                                    "locale": "en-GB",
                                    "source": "internal"
                                }
                          ]
                        },

    Can you please try this once and see if the issue persist ?

    0
  • Erik
    Conversation starter

    Hi Archana,

    Thank you for your response.
    GTIN & PIM Identifier are separate match sets, each with only one attribute in there.

    The JSON, is created by another supplier of our customer, and they preferred to have the JSON in that format, the feed can both contain new and existing products, existing products will have those details filled, causing Syndigo to update the matching record, but new product don't have the PIM Identifier since that's generated in Syndigo, and feed back to the other system, GTIN can sometimes be empty.

    We understood from Syndigo support that they have no other solution, than not to include those identifiers in the JSON when empty. I was hopping to still find a fix, we even tried using decimals but that acted the same as Strings and had additional issues.

    We've requested the change to the JSON from the other supplier, that should work around the issue.

    Erik

    0
  • Archana Mehta
    Rising star (Silver)
    Expert (Gold)

    Hi Erik,

    Got it, So only solution is not to pass the attribute block in JSON during create [ if its empty ].

    Thanks for the update.

    0

Please sign in to leave a comment.