XML Port writes the same data to every new line

bastirbastir Member Posts: 27
Hello,

I've created a xml-port that is importing orders to a "middleware" table.
If I try to export data then navision creates a well formatted file with different order lines.

If I import the same xml-file then navision creates the header and three lines but all those lines contain the same data of the first entry.

Does anybody know a reason for that behavior?
 <?xml version="1.0" encoding="UTF-16" standalone="no" ?> 
- <order>
  - <General>
      <order_no /> 
      <sell_customer_id>14401</sell_customer_id> 
      <purchase_date>03.12.07 16:25</purchase_date> 
    </General>
  - <Shipping>
      <delivery_name>Mustermann GmbH &</delivery_name> 
      <delivery_name2>Ronny Mueller</delivery_name2> 
      <delivery_address1>August-Muster Strasse 18</delivery_address1> 
      <delivery_address2 /> 
      <delivery_city>Diezenbach</delivery_city> 
      <delivery_postcode>65432</delivery_postcode> 
      <delivery_iso2>DE</delivery_iso2> 
    </Shipping>
  - <Billing>
      <bill_name /> 
      <bill_name2 /> 
      <bill_address1 /> 
      <bill_address2 /> 
      <bill_city /> 
      <bill_postcode /> 
      <bill_iso2 /> 
    </Billing>
  - <Items>
    - <Item itemno="3010421">
        <qty>1</qty> 
        <price>1</price> 
      </Item>
    - <Item itemno="3010422">
        <qty>2</qty> 
        <price>2</price> 
      </Item>
    - <Item itemno="3010423">
        <qty>3</qty> 
        <price>3</price> 
     </Item>
   </Items>
</order>

Thanks

Comments

Sign In or Register to comment.