amazon中的submitfeed错误mws api - 属性与有效值列表不匹配

时间:2012-12-11 18:20:07

标签: php amazon amazon-mws

我正在试图弄清楚为什么我的孩子变异测试产品不会被亚马逊mws api使用submitfeed操作接受。我一遍又一遍地检查了xsd文件,但我仍然收到以下错误消息

            <Result>
            <MessageID>1</MessageID>
            <ResultCode>Error</ResultCode>
            <ResultMessageCode>8105</ResultMessageCode>
            <ResultDescription>The data you provided for an attribute does not match the list of valid values.  Please select a valid value from the Data Definitions and resubmit.</ResultDescription>
            <AdditionalInfo>
                <SKU>TESTSKU-1</SKU>
            </AdditionalInfo>
        </Result>

来自此提交

  <Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<Product>
    <SKU>TESTSKU-1</SKU>
    <StandardProductID>
      <Type>ASIN</Type>
      <Value>B011223344</Value>
    </StandardProductID>
    <ProductTaxCode>A_GEN_NOTAX</ProductTaxCode>
    <ItemPackageQuantity>1</ItemPackageQuantity>
    <NumberOfItems>1</NumberOfItems>
    <DescriptionData>
      <Title><![CDATA[TEST2 Aquarius Star Sign Mens T Shirt - White, 100% Heavy Cotton Mens]]></Title>
      <Brand>StarliteClothing</Brand>
      <Description><![CDATA[TEST2 Aquarius Sign Mens T Shirt, 100% Heavy Cotton Mens & Boys Tee Shirts in All Sizes.  Made with 100% Heavy Cotton either Fruit of the Loom or Gilden T-Shirts.]]></Description>
      <BulletPoint>100% Cotton</BulletPoint>
      <BulletPoint>Everyday Casual Wear</BulletPoint>
      <BulletPoint>Sports Wear</BulletPoint>
      <BulletPoint>100</BulletPoint>
      <ShippingWeight unitOfMeasure="GR">425.0</ShippingWeight>
      <MSRP currency="GBP">9.99</MSRP>
      <Manufacturer></Manufacturer>
      <ItemType>example-item-type</ItemType>
      <RecommendedBrowseNode>116192031</RecommendedBrowseNode>
      <RecommendedBrowseNode>116195031</RecommendedBrowseNode>
    </DescriptionData>
    <ProductData>
      <Clothing>
             <VariationData>
                <Parentage>child</Parentage>
                <Size>Small</Size>
                <Color>White</Color>
                <VariationTheme>SizeColor</VariationTheme>
             </VariationData>
             <ClassificationData>
                <ClothingType>Shirt</ClothingType>
                <Department>Mens</Department>
                <StyleKeywords>Apparel</StyleKeywords>
                <ColorMap>White</ColorMap>
                <InnerMaterial>White</InnerMaterial>
                <OuterMaterial>White</OuterMaterial>
                <Season>All Seasons</Season>
                <CollarType>Crew</CollarType>
                <SleeveType>Short</SleeveType>
                <IsAdultProduct>false</IsAdultProduct>
             </ClassificationData>
      </Clothing>
    </ProductData>
</Product>

错误消息未指定哪个属性不正确。任何人都可以看到哪个值不正确?

2 个答案:

答案 0 :(得分:0)

当我的列标题与亚马逊允许的允许列标题不匹配时,我遇到了同样的错误。有时列标题的规格可能会发生变化。有时他们会丢弃表格中的某些字段(如图所示),所以只需检查所有列标题以匹配您的字段。检查拼写,它必须是完全匹配。 丹尼尔

答案 1 :(得分:0)

您的XML验证,因此无法通过查看XSD找到问题。无论错误消息的“值列表”是指什么,它肯定不是XSD。我担心你必须打电话给亚马逊才能找到问题的原因。

为了完整起见:我必须使用以下代码包装您的XML以使其有效:

<?xml version="1.0"?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
  <Header>
    <DocumentVersion>1.01</DocumentVersion>
    <MerchantIdentifier>X</MerchantIdentifier>
   </Header>
   <MessageType>Product</MessageType>
   <Message>
   ... your code here ...
   </Message>
</AmazonEnvelope>