Posted on 13/09/2021 20:18:59
						
					 
					Hello forum,
- having a DW9.10.14 to import a JSON file will fail, if not all "EcomProducts" fields are present on the variant. In this ex. "unitprice" + "unitcurrency" are only relevant for the product.
Log:
Import job failed: The source reader for the table: [EcomProducts] can not get a value for the column: [unitprice].The input row is:...
Is there anyway I can bypass the requirement for adding the fields to the variant?
 
PS. Doing the same with a XML file will work fine.
 
Below is a snippet of the JSON:
    {
        "tableName": "EcomProducts",
        "EcomProducts": [
            {
                "productid": "ZXY111",
 "productvariantid": "",
                "productlanguageid": "LANG1",
                "productdefaultshopid": "",
                "productnumber": "ZXY111",
                "productname": "Chair (product)",
                "unitprice": "357.00",
                "unitcurrency": "EUR"
            },
            {
                "productid": "ZXY111",
 "productvariantid": "fabric_643.cover_oak.base_black",
                "productlanguageid": "LANG1",
                "productdefaultshopid": "",
                "productnumber": "ZXY111",
                "productname": "Chair (variant)"
            }
        ]
    }
 
Br. Michael Knudsen