Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
&引用;“一个或多个项目无效”;在Amazon MWS XML提要中_Xml_Amazon Web Services - Fatal编程技术网

&引用;“一个或多个项目无效”;在Amazon MWS XML提要中

&引用;“一个或多个项目无效”;在Amazon MWS XML提要中,xml,amazon-web-services,Xml,Amazon Web Services,这与这个问题类似,但在我的情况下,答案似乎不起作用: 我正在提交以下XML: <?xml version="1.0" encoding="UTF-8"?> <AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd"> <Header> <DocumentVersion&

这与这个问题类似,但在我的情况下,答案似乎不起作用:

我正在提交以下XML:

<?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.01</DocumentVersion>
    <MerchantIdentifier>1234567</MerchantIdentifier>
</Header>
<MessageType>OrderFulfillment</MessageType>
<Message>
    <MessageID>1</MessageID>
    <OrderFulfillment>
        <AmazonOrderID>000-1111111-2222222</AmazonOrderID>
        <MerchantFullfillmentID>1234567</MerchantFullfillmentID>
        <FulfillmentDate>2016-04-27T16:13:46-05:00</FulfillmentDate>
        <FulfillmentData>
            <CarrierName>UPS</CarrierName>
            <ShippingMethod>UPS Ground</ShippingMethod>
            <ShipperTrackingNumber>1234567</ShipperTrackingNumber>
        </FulfillmentData>
        <Item>
            <MerchantOrderItemID>SKU</MerchantOrderItemID>
            <MerchantFulfillmentItemID>SKU</MerchantFulfillmentItemID>
            <Quantity>1</Quantity>
        </Item>
    </OrderFulfillment>
</Message>
</AmazonEnvelope>

1.01
1234567
订单履行
1.
000-1111111-2222222
1234567
2016-04-27T16:13:46-05:00
不间断电源
UPS地面
1234567
SKU
SKU
1.
我在检查提要状态时收到此消息:

<Result>
    <MessageID>1</MessageID>
    <ResultCode>Error</ResultCode>
    <ResultMessageCode>25</ResultMessageCode>
    <ResultDescription>We are unable to process the XML feed because one or more items are invalid. Please re-submit the feed.</ResultDescription>
</Result>

1.
错误
25
我们无法处理XML提要,因为一个或多个项无效。请重新提交提要。

本文档中是否有任何明显错误?

我注意到的唯一与我的代码不同的地方是我使用了:

<CarrierCode>UPS</CarrierCode>
UPS
而不是你的

<CarrierName>UPS</CarrierName>
UPS
此外,我不认为这会导致很多问题,但你可以尝试不提交项目信息,我遇到了问题,停止发送项目信息,效果很好,只需尝试删除:

    <Item>
        <MerchantOrderItemID>SKU</MerchantOrderItemID>
        <MerchantFulfillmentItemID>SKU</MerchantFulfillmentItemID>
        <Quantity>1</Quantity>
    </Item>

SKU
SKU
1.

我尝试了第一个选项-没有什么不同,但我尝试了删除项目信息,就像你建议的那样,而且效果很好。。。这意味着亚马逊的系统基本上在一个基本的层面上被破坏了——但我可以接受这一点。谢谢没问题,我同意这很奇怪,我实际上忘记了删除,正在检查我的代码,看到我注释掉了项目内容,并留下了一条注释说“我希望这能起作用”,现在我记得我和你有类似的问题。如果它对您有效,请标记为完整。