Amazon MWS API: - _POST_PRODUCT_DATA_ SubmitFeed выдает ошибку - PullRequest
0 голосов
/ 25 сентября 2018

Я пытаюсь отправить новый продукт для продукта Beauty / HairCareProduct.

Вот XML-запрос, который я пытаюсь отправить.

    <?xml version="1.0" encoding="iso-8859-1"?>
    <AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
    <Header>
        <DocumentVersion>1.01</DocumentVersion>
        <MerchantIdentifier>xxxxxxxx</MerchantIdentifier>
      </Header>
      <MessageType>Product</MessageType>
      <PurgeAndReplace>false</PurgeAndReplace>
      <Message>
        <MessageID>1</MessageID>
        <OperationType>Update</OperationType>
        <Product>
            <SKU>BU07612251AC</SKU>
            <Condition>
                <ConditionType>New</ConditionType>
            </Condition>
            <DescriptionData>
                <Title>Coconut Oil Baobab Sulfate-Free Invigorating Shampoo</Title>
                <Brand>ORS</Brand>
                <Description>Lather-rich, sulfate-free shampoo gently cleanses while reparative oils and plant-derived protein nourish and help reinforce strands to invigorate and revive damaged hair and dry scalp</Description>
            </DescriptionData>
            <ProductData>
                <Beauty>
                    <ProductType>
                        <HairCareProduct>
                            <Directions>The product is applied on wet hair and massage into lather. Rinse well. ‭Repeat, if necessary, leaving on hair 2 to 3 minutes. Rinse thoroughly. ‭Follow with HAIRepair Restoring Conditioner. </Directions>
                        </HairCareProduct>
                    </ProductType>
                </Beauty>
            </ProductData>
        </Product>
    </Message>
</AmazonEnvelope>

Когда я отправляю этот запрос и проверяю результат, я вижу ошибку следующим образом.

<?xml version="1.0" encoding="UTF-8"?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
    <Header>
        <DocumentVersion>1.02</DocumentVersion>
        <MerchantIdentifier>xxxxxxxxxx</MerchantIdentifier>
    </Header>
    <MessageType>ProcessingReport</MessageType>
    <Message>
        <MessageID>1</MessageID>
        <ProcessingReport>
            <DocumentTransactionID>xxxxxxx</DocumentTransactionID>
            <StatusCode>Complete</StatusCode>
            <ProcessingSummary>
                <MessagesProcessed>1</MessagesProcessed>
                <MessagesSuccessful>0</MessagesSuccessful>
                <MessagesWithError>2</MessagesWithError>
                <MessagesWithWarning>0</MessagesWithWarning>
            </ProcessingSummary>
            <Result>
                <MessageID>0</MessageID>
                <ResultCode>Error</ResultCode>
                <ResultMessageCode>90215</ResultMessageCode>
                <ResultDescription>100% of the products in your file did not process successfully. We recommend using Check My File to help you identify and correct common listing errors before updating your inventory. To use Check My File, upload your file on the "Add Products via Upload" page in the "Check My File" section.</ResultDescription>
            </Result>
            <Result>
                <MessageID>1</MessageID>
                <ResultCode>Error</ResultCode>
                <ResultMessageCode>99001</ResultMessageCode>
                <ResultDescription>A value is required for the "part_number" field.</ResultDescription>
                <AdditionalInfo>
                    <SKU>BU07612251AC</SKU>
                </AdditionalInfo>
            </Result>
        </ProcessingReport>
    </Message>
</AmazonEnvelope>

Пожалуйста, не относитесь к моей категории товаров для красоты и волос.Дайте мне знать, что не так в файле XML.Я пробовал много учебников, примеров, чтобы решить эту проблему, но не повезло.

Ответы [ 2 ]

0 голосов
/ 29 сентября 2018

Сообщение об ошибке относится к part_number, который является именем столбца CSV (в MWS он называется «плоскими файлами»).В XML вам нужно указать StandardProductID вместо этого, например:

        <StandardProductID>
            <Type>EAN</Type>
            <Value>1234567890123</Value>
        </StandardProductID>    

Обратите внимание, что у моего Beauty.xsd нет HairCareProduct.Мне пришлось изменить это значение на BeautyMisc для проверки канала, но это может быть связано с устаревшим набором XSD.

0 голосов
/ 25 сентября 2018

Я вижу это как ошибку от Amazon:

Требуется значение для поля "part_number"

Им нужны данные для этого поля.Вы можете поставить это?

Есть ли здесь что-нибудь, что может помочь?https://forum.nitrosell.com/t/multiple-errors-when-trying-to-upload-items-to-amazon/674/10

...