hey, I started to use the data files tool to create an entity xml file from
csv for an easy import.

now I am wondering if I can use multiple record entries in one definition
file...because when I do that, it ignore's all besides the first record.
Also I need to define the column in the csv for the field. I tried
"position="1"" i.ex., but this is also ignored. 

The reason for my question is, that normally I have to put things in
multiple entities, but all information are settled down in one csv file. So
I want to avoid to click 5 times import with the tool and also to avoid to
split my csv file in 5 files.

any ideas?


*example:*
/<?xml version="1.0" encoding="UTF-8" ?>

<data-files xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/datafiles.xsd";>
<data-file name="partyManufacturers" separator-style="delimited"
type-code="text" 
delimiter=",">
    <record name="Party" limit="many">
      <field name="partyId" type="String" position="0"/>
      <field name="partyTypeId"  type="String" position="1"/>
      <field name="statusId"  type="String" position="2"/>
    </record>    

*the following entry is completely ignored, also the position entries are
ignored for all records*

   <record name="PartyGroup" limit="many">
      <field name="partyId" type="String" position="0"/>
      <field name="groupName"  type="String" position="3"/>      
      <field name="logoImageUrl"  type="String" position="4"/>
    </record>    
</data-file>
</data-files>/



--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Import-Export-CSV-Files-for-products-tp4640128p4640236.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to