Developer forum

Forum » Development » import/export

Reply
I'm developing a custom activity, that outputs some xml to the Product destination activity.

My problem is just that i keep getting an "Rodelementet mangler" error.

The output I set in the process method for each product looks abit like this: 

<Products>
 <Product>
  <ProductID>UnikNumber</ProductID>
  <ProductLanguageID>LANG1</ProductLanguageID>
  <ProductDefaultShopID />
  <ProductNumber>ProductNumber</ProductNumber>
  <ProductName>ProductName</ProductName>
  <ProductShortDescription />
  <ProductLongDescription>LongDescription</ProductLongDescription>
  <ProductStock>3</ProductStock>
  <ProductStockGroupID />
  <ProductWeight />
  <ProductVolume />
  <ProductVatGroupID />
  <ProductManufacturerID />
  <ProductActive>True</ProductActive>
  <ProductPeriodID />
  <ProductCreated />
  <ProductUpdated />
  <ProductType>0</ProductType>
  <ProductPriceType>0</ProductPriceType>
  <ProductVariantID />
  <ProductImageSmall />
  <ProductImageMedium />
  <ProductImageLarge />
  <ProductLink1 />
  <ProductLink2 />
  <ProductPrice></ProductPrice>
  <ProductDefaultUnitID />
  <ProductDefaultVariantComboID />
  <ProductPriceMatrixUnit>0</ProductPriceMatrixUnit>
  <ProductPriceMatrixVariant>0</ProductPriceMatrixVariant>
  <ProductPriceMatrixPeriod>0</ProductPriceMatrixPeriod>
  <ProductPriceMatrixMultiplePrices>0</ProductPriceMatrixMultiplePrices>
  <ProductPriceMatrixQuantitySpecification />
  <ProductPriceCnt>0</ProductPriceCnt>
  <ProductVariantCnt>0</ProductVariantCnt>
  <ProductVariantProductCnt>0</ProductVariantProductCnt>
  <ProductVariantGroupCnt>0</ProductVariantGroupCnt>
  <ProductRelatedCnt>0</ProductRelatedCnt>
  <ProductUnitCnt>0</ProductUnitCnt>
  <ProductGroups>
   <GroupID>GROUP1</GroupID>
  </ProductGroups>
 </Product>
</Products>

What am I missing?

Best regarts
KimS

Replies

 
Reply
A fast check with the XSD file (DW7 19.0.0.4) you need to add:

<ProductVariantGroups />
<ProductRelatedGroups />
<ProductUnits />

to the bottom of your xml in order to have a correct Valid XML file against the schema product.xsd found in: /Admin/Module/Integration/Resources/product.xsd
 
Reply
Okay, I changed the xml to:

<Products>
 <Product>
  <ProductID>APG-CD005A</ProductID>
  <ProductLanguageID>LANG1</ProductLanguageID>
  <ProductDefaultShopID />
  <ProductNumber>APG-CD005A</ProductNumber>
  <ProductName>APG-CD005A</ProductName>
  <ProductShortDescription />
  <ProductLongDescription>CABLE RJ12 24V DMX/EPS/CTZ/TEC J2/SAM/AXH</ProductLongDescription>
  <ProductStock>115</ProductStock>
  <ProductStockGroupID />
  <ProductWeight />
  <ProductVolume />
  <ProductVatGroupID />
  <ProductManufacturerID />
  <ProductActive>True</ProductActive>
  <ProductPeriodID />
  <ProductCreated />
  <ProductUpdated />
  <ProductType>0</ProductType>
  <ProductPriceType>0</ProductPriceType>
  <ProductVariantID />
  <ProductImageSmall />
  <ProductImageMedium />
  <ProductImageLarge />
  <ProductLink1 />
  <ProductLink2 />
  <ProductPrice />
  <ProductDefaultUnitID />
  <ProductDefaultVariantComboID />
  <ProductPriceMatrixUnit>0</ProductPriceMatrixUnit>
  <ProductPriceMatrixVariant>0</ProductPriceMatrixVariant>
  <ProductPriceMatrixPeriod>0</ProductPriceMatrixPeriod>
  <ProductPriceMatrixMultiplePrices>0</ProductPriceMatrixMultiplePrices>
  <ProductPriceMatrixQuantitySpecification />
  <ProductPriceCnt>0</ProductPriceCnt>
  <ProductVariantCnt>0</ProductVariantCnt>
  <ProductVariantProductCnt>0</ProductVariantProductCnt>
  <ProductVariantGroupCnt>0</ProductVariantGroupCnt>
  <ProductRelatedCnt>0</ProductRelatedCnt>
  <ProductUnitCnt>0</ProductUnitCnt>
  <ProductGroups>
   <GroupID>GROUP1</GroupID>
  </ProductGroups>
  <ProductVariantGroups />
  <VariantCombinations />
  <ProductRelatedGroups />
  <ProductUnits />
  <ProductCustomFields>
   <Field>
    <FieldName>MANUFACTURERPART</FieldName>
    <FieldSystemName>MANUFACTURERPART</FieldSystemName>
    <FieldTagName>MANUFACTURERPART</FieldTagName>
    <FieldTypeID>1</FieldTypeID>
    <FieldTypeName>Tekst (255)</FieldTypeName>
    <FieldValue>123</FieldValue>
   </Field>
  </ProductCustomFields>
 </Product>
</Products>

Now it just returns the error:
Produkt destination Error restoring temporary tables: TEST

Any help would be appreciated.

KimS
 
Reply
Hi Kim,

This is related to bug 3932 scheduled for 19.0.1.0. Please contact Service Desk for an ETA on this release. We apologize for the inconvenience.

/Lars

 

You must be logged in to post in the forum