question

toys-world avatar image
0 Likes"
toys-world asked ·

error in variation listing :"Too many trait values in variation specifics of the variation"

here is a part of my code i cant understand what is the problem if some one can help i get an error says : "Too many trait values in variation specifics of the variation" some one know how to solve? what is the problem? String[] color = variationObj.getItemVariation().keySet().toArray(new String [0]); String[] colorPhotos = variationObj.getItemVariation().values().toArray(new String [0]); // Specify VariationSpecificsSet VariationsType vt = new VariationsType(); NameValueListType NVListVS1 = new NameValueListType(); NVListVS1.setName(variationObj.getTitle()); NVListVS1.setValue(color); NameValueListArrayType nvla = new NameValueListArrayType(); nvla.setNameValueList(new NameValueListType[]{NVListVS1}); VariationType v1 = new VariationType(); v1.setSKU("V1"); v1.setQuantity(new Integer(color.length)); v1.setStartPrice(getAmount(Double.valueOf(itemPrice)*profit)); NameValueListType nvlt = new NameValueListType(); nvlt.setName(variationObj.getTitle()); nvlt.setValue(color); NameValueListArrayType nvla1 = new NameValueListArrayType(); nvla1.setNameValueList(new NameValueListType[]{nvlt}); v1.setVariationSpecifics(nvla1); PicturesType pic = new PicturesType(); pic.setVariationSpecificName(variationObj.getTitle()); VariationSpecificPictureSetType[] vsp = new VariationSpecificPictureSetType[color.length]; for(int i=0;i
Java
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.