You did nothing wrong, there is an error in the xml schema provided in that tutorial.
The schema should be:
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name='Customers'>
<xs:complexType>
<xs:sequence>
<xs:element name='Customer' maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name='ID' type='xs:string'/>
<xs:element name='CompanyName' minOccurs='0' type='xs:string'/>
<xs:element name='ContactName' minOccurs='0' type='xs:string'/>
<xs:element name='ContactTitle' minOccurs='0' type='xs:string'/>
<xs:element name='Phone' minOccurs='0' type='xs:string'/>
<xs:element name='Fax' minOccurs='0' type='xs:string'/>
<xs:element name='Address' minOccurs='0' type='xs:string'/>
<xs:element name='City' minOccurs='0' type='xs:string'/>
<xs:element name='Region' minOccurs='0' type='xs:string'/>
<xs:element name='PostalCode' minOccurs='0' type='xs:string' />
<xs:element name='Country' minOccurs='0' type='xs:string'/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
This maxOccurs makes sure Mendix understands there will be multiple clients in the xml.
To make it wor in Mendix: reimport the xsd and recreate the import mapping.
I hope this helps.
Hi Harshaj,
Have you tried changing the “Method” to “Create an object”? Does it now still import only one record?
If not, the ids of the incoming customer objects are likely to be the same, so each customer overwrites the previous.