How to Import Invoices in iDempiere

The Import Invoice window in iDempiere lets retail businesses load AP and AR invoices in bulk from a CSV file instead of entering them one by one. Correct configuration ensures accurate accounting entries, tax capture, and reliable financial reporting.

Process Flow

TenthPlanet-iDempiere-Import-Invoice-WorkFlow

Business Rules

  • Each import row must reference a valid Business Partner Key already configured in the system.
  • Product Key or SKU on each line must match an existing Product record.
  • Only Prepare and Complete are valid Document Actions for the import process.
  • Records that fail validation are marked with an Import Error Message and skipped.
  • The Imported checkbox prevents a successfully processed row from being imported again.
  • Tax rates on each line must match a configured Tax record for the item.
  • Currency Code on the file must match the Business Partner’s transaction currency.

Prerequisites

  • Business Partner records configured for all suppliers or customers in the file.
  • Product records configured with matching Product Key and SKU values.
  • Document Type (example: AP Invoice) configured for the transaction.
  • Price List and Payment Term configured and linked to the Business Partner.
  • Import Format (Import Invoice) mapped to the CSV column sequence.
  • Organization (example: Chennai Store) configured for the transaction.
  • Tax records configured for applicable GST or VAT rates.

Navigation

Menu → General Rules → Data Import → Import Invoice

Configuration Steps

Step 1: Prepare the Import CSV File

Build the CSV with Organization, Document Type, Business Partner Key, Product Key, SKU, Quantity, Unit Price, and Tax columns in the exact order used by the Import Format.

Step 2: Load the File with Import File Loader

Open Import File Loader, select the CSV file, choose UTF-8 encoding, select Import Invoice as the Import Format, then confirm to load the rows.

FieldSample ValueDescription
OrganizationChennai StoreStore or business unit the invoice belongs to
Document Type NameAP InvoiceIdentifies the transaction as a purchase invoice
Sales TransactionNMarks the record as a purchase, not a sale
ISO Currency CodeUSDCurrency used for pricing and tax on the invoice
Payment Term KeyIMDPayment terms applied to the supplier invoice
TenthPlanet-iDempiere-Import-Invoice-1
TenthPlanet-iDempiere-Import-Invoice-2

Step 3: Review Staged Records in Import Invoice

Open the Import Invoice tab, page through each staged record, and confirm Business Partner, Product, SKU, quantity, price, and tax values are populated correctly.

FieldSample ValueDescription
Business Partner Key1000006Supplier code matched to an existing Business Partner
Product KeyCINProduct code matched to an existing Product record
SKUCIN-001Stock keeping unit used to confirm the exact item
Ordered Quantity10Quantity purchased on the invoice line
Unit Price25.00Price per unit used to calculate the line amount
TaxCGST 1.5%Tax rate applied to the invoice line
Tax Amount45.00Calculated tax value for the invoice line

Step 4: Run the Import Invoice Process

Click Process, set Tenant and Organization, choose Document Action (Prepare or Complete), optionally check Delete old imported records, then click OK.

FieldSample ValueDescription
TenantPOTSClient instance running the import
OrganizationChennai StoreStore the new invoice records are created under
Document ActionPrepareControls whether the invoice is only prepared or completed
Delete old imported recordsUncheckedRemoves previously imported rows before reprocessing
Run as JobUncheckedRuns the import in the background instead of inline
TenthPlanet-iDempiere-Import-Invoice-3
TenthPlanet-iDempiere-Import-Invoice-4
TenthPlanet-iDempiere-Import-Invoice-5
TenthPlanet-iDempiere-Import-Invoice-6

Step 5: Verify Results and Resolve Errors

Review the completion message for counts of Errors, Invoices Inserted, and Invoice Lines Inserted, then open failed rows to read the Import Error Message.

TenthPlanet-iDempiere-Import-Invoice-7

Common Issues and Resolutions

IssueCauseResolution
Product and Charge both null errorProduct Key does not match any existing productCreate or correct the product record with the matching key before import
Business Partner not linkedBusiness Partner Key not found in the systemCreate the Business Partner record with a matching Value before import
Invoice stuck at Prepare statusDocument Action set to Prepare instead of CompleteRerun the process with Complete after reviewing the invoice
Duplicate invoices on reimportSame file reprocessed without checking Imported statusCheck the Imported flag or use Delete old imported records before rerun
Tax not calculated on lineTax field left blank in the import fileMap a valid Tax rate in the CSV or set it manually before processing
Currency mismatch errorISO Currency Code differs from the Business Partner’s currencyAlign the currency code with the Business Partner’s price list currency
Partial import with some rows failingMixed valid and invalid rows in the same batchCorrect the failed rows individually and reprocess only those records
Import Error Message remains after fixOld error text not cleared after correcting the recordClear the Import Error Message field manually and reprocess the record

Next Steps

  • Open the standard Invoice window to review posted invoices before payment.
  • Configure Payment Selection to process supplier payments against imported invoices.
  • Verify GL accounts under Accounting Rules for correct AP posting.