How to Configure Test Import Model in iDempiere

Introduction

The Test Import Model window in iDempiere lets business users load data into the system from an XML file, using a saved Export Format to match each piece of data to the right place.

It is used whenever a business needs to bring in bulk data, such as testing a new data feed or re-loading records after a setup change, without entering them one by one.

A completed import creates or updates records directly in the target area, which then feeds into everyday transactions, reports, and other business processes.

Process Flow

TenthPlanet-iDempiere-SystemAdmin-TestImportModel-ProcessFlow

Business Rules

  • Only active Export Formats are available for selection.
  • The File Name must point to a valid XML file that the system can reach.
  • The XML file content must match the fields defined in the chosen Export Format.
  • Turning on Run as Job sends the import to run in the background instead of immediately.
  • A completed import creates new records or updates existing ones in the linked area.
  • The system keeps a log of what happened during each import for review.
  • Records brought in through import follow the same rules as records entered manually.

Prerequisites

  • An Export Format already set up and linked to the correct business area.
  • An XML file prepared with data that matches the Export Format layout.
  • The XML file saved in a location the system can access.
  • User access rights to run the Test Import Model process.

Navigation

Menu → System Admin → Data → Replication Data → Test Import Model
TenthPlanet-iDempiere-SystemAdmin-TestImportModel-1

Opening this window shows the Test Import of XML Files screen, with fields for Export Format and File Name, plus a Run as Job option and OK/Cancel buttons to start or exit the import.

TenthPlanet-iDempiere-SystemAdmin-TestImportModel-2

Configuration Steps

Step 1: Select the Export Format

This tells the system how to read the XML file and where each value belongs, so the data lands in the correct fields.

Instructions

Open the Export Format field, search for the format that matches your XML file, and select it before continuing.

FieldSample ValueDescription
Export FormatSales Order ImportSets the layout used to read and place the incoming XML data.

Step 2: Specify the File Name

This points the system to the exact XML file that holds the data to be imported.

Instructions

Click the file icon next to File Name, browse to the XML file, select it, and confirm the path shown is correct.

FieldSample ValueDescription
File Name/data/import/orders.xmlIdentifies the XML file the system will read during the import.

Step 3: Choose the Run Mode

This decides whether the import runs right away or in the background, which matters for larger files.

Instructions

Leave Run as Job unchecked for small, quick imports. Check it for large files so the import runs in the background.

FieldSample ValueDescription
Run as JobUncheckedRuns the import immediately; the window stays open until it finishes.
Run as JobCheckedQueues the import to run in the background, freeing the screen for other work.

Step 4: Run the Import

This starts the actual process of reading the file and creating or updating records.

Instructions

Click OK to start the import and review the result once it finishes. Click Cancel to close the window without importing.

Common Issues and Resolutions

IssueCauseResolution
Import fails right awayFile Name path is wrong or the file is missingConfirm the file exists and re-select it from the correct location.
No records are createdXML file layout does not match the Export FormatCheck that the Export Format fields line up with the XML file content.
Export Format list is emptyNo Export Format is set up for this area yetSet up and activate an Export Format before running the import again.
Duplicate records appearThe same file was imported more than onceCheck existing records before re-running an import on the same file.
Process stays In Process for a long timeA large file was run without Run as JobTurn on Run as Job for large files, or allow more time to finish.
Only some records come throughA few records in the file fail validationReview the process log and correct the flagged records in the file.
Access denied when selecting the fileUser does not have rights to that file locationSave the file in a shared, accessible location and try again.
Values land in the wrong fieldsThe Export Format mapping is outdatedUpdate the Export Format so it matches the current file layout.

Next Steps

  • Review and maintain the Export Format used for this import.
  • Check the target window (for example, Sales Order or Business Partner) to confirm the imported records.
  • Set up a recurring schedule if this import will run regularly.
  • Use the Import Tables area to monitor and correct import results.