🔧 Amazon - Error "must have no element [children]", and the value must be valid.

Amazon error message (example):

cvc-complex-type.2.2: Element 'Width' must have no element [children], and the value must be valid.
ou

cvc-complex-type.2.2: Element 'StandardPrice' must have no element [children], and the value must be valid. 

What does this error mean?

Amazon is letting you know that they are receiving a width unit of mesure (for example: "CM"), but no corresponding value for the width. These two elements are mutually dependent, which incurs the error.

The issue can be identified in the Preview section: "item_width" is empty, whereas "item_width_unit_of_mesure" is filled in with "CM".

width amazon.png

A similar error may occur with the price, if the price is empty but the currency ("EUR" for example) is populated.

Note: despite the word "children", this error has nothing to do with variations.

Solve and prevent this error:

In this example, add a rule to empty the "item_width_unit_of_mesure" attribute when the field mapped with the "item_width" attribute has no value. 

Rule example:

width amazon rule.png

More broadly speaking, make sure that mutually dependent fields are either both filled in or both empty. 

-

Articles in this section

See more
Lengow Academy
Get access to our e-learning platform designed to help you unlock the full potential of the Lengow Suite.