该报错主要出现在商品的option中内容有重复的情况下。请按照以下方法进行排查:
1.检查产品创建的完整JSON中每个选项的itemName值是否没有重复。
2.请检查属性数组中attributeTypeName和attributeValueName的值是否不重复。
重复选项值报错的一个示例,即必填购买属性的值完全一样。
"items":[
{
"itemName":"sssss"
....
attributes": [
{
"attributeTypeName": "A",
"attributeValueName": "123"
},
{
"attributeTypeName": "B",
"attributeValueName": "456"
}
],
},
{
"itemName":"xxxxx"
....
attributes": [
{
"attributeTypeName": "A",
"attributeValueName": "123"
},
{
"attributeTypeName": "B",
"attributeValueName": "456"
}
],
}
]