Skip to content
This repository was archived by the owner on Oct 6, 2020. It is now read-only.

The content of element 'AmazonEnvelope' is not complete. One of '{EffectiveDate, Message}' is expected. #8

Open
natea opened this issue May 28, 2014 · 4 comments

Comments

@natea
Copy link

natea commented May 28, 2014

When I try to submit a product, I get the following error in the response:

Error   5001    XML Parsing Fatal Error at Line 2, Column 323: cvc-complex-type.2.4.b: The content of element 'AmazonEnvelope' is not complete. One of '{EffectiveDate, Message}' is expected. cvc-complex-type.2.4.b: The content of element 'AmazonEnvelope' is not complete. One of '{EffectiveDate, Message}' is expected.

The full XML response is:

<?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>
   A24554KR292FDV
  </MerchantIdentifier>
 </Header>
 <MessageType>
  Product
 </MessageType>
 <PurgeAndReplace>
  false
 </PurgeAndReplace>
</AmazonEnvelope>

Does this mean that I need to product an 'effective date' as one of the product attributes?

@natea
Copy link
Author

natea commented May 28, 2014

I should mention that when I submit this product, I've made sure that the SKU and ASIN on the Oscar side match what has been entered on the Amazon MWS side.

@roadsideseb
Copy link
Contributor

From the error output above, it seems similar to the biggest issues I had with the MWS API. Creating a profile that matches an existing product in MWS or (even worst) creating a new product from within Oscar. So essentially, I think you are right, it is expecting some attributes that you are not passing through. Based on your last comment, however, I think it shouldn't complain here since the data is already available in MWS.

The general experience I had with this part of the system, was that the extremely complex XSD schema used to validate the incoming product XML and the almost useless error message make it really difficult to get this right. Let alone provide a generic product mapper solution for this project. It would be great to find a better solution for this but currently this needs some work.

If you could provide me with some of the product details that you are using (either here or via email), I'd be happy to take a look at it and see where I get to with our test account. Otherwise, it'll be difficult to provide helpful feedback on this.

@natea
Copy link
Author

natea commented Jun 2, 2014

Ok, I'll send you an email with more details.

@mtkumar82
Copy link

mtkumar82 commented Apr 27, 2019

I ma facing issue with amazon API for creating products by MWS API, Each time I am posting the xml its returing error for "ML Parsing Error at Line 2, Column 964: cvc-complex-type.2.4.b: The content of element is not complete. One of '{VariationData, ClassificationData}' is expected". Below are the xml I am posting there. Please any help me to sortout this issue.

<?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>XXXXXXXX</MerchantIdentifier></Header><MessageType>Product</MessageType><Message><MessageID>1</MessageID><OperationType>Update</OperationType><Product><SKU>QO-RN20-M4XY</SKU><StandardProductID><Type>ASIN</Type><Value>B076PKKHY2</Value></StandardProductID><Condition><ConditionType>New</ConditionType></Condition><DescriptionData><Title>Cooler Master MasterWatt 750 EU Alimentatore 'Semi-Fanless Modular, 80 Plus Bronze, 750W' MPX-7501-AMAAB-EU</Title><Brand>Cooler Master</Brand><Manufacturer>Cooler Master</Manufacturer><MfrPartNumber>B076PKKHY2</MfrPartNumber><Battery><AreBatteriesRequired>false</AreBatteriesRequired></Battery><SupplierDeclaredDGHZRegulation>not_applicable</SupplierDeclaredDGHZRegulation></DescriptionData><ProductData><Clothing>Clothing/Boys/Dungarees</Clothing></ProductData></Product></Message></AmazonEnvelope>

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants