# Import your books

Bring masters and vouchers in from an XML file, paste master lists from a spreadsheet, and import bank statements.

- Title: Import your books
- Product: SAHARA Core
- Applies to: SAHARA Core, first version. Installation from 11 Poush 2083 (26 December 2026).
- Software verification: Checked against the source code; not walked in the software. Last checked 16 October 2026 against source at 7c2f815a3.
- Content updated: 22 October 2026
- Who can do this: Any user of the company, with Security Control off (the default).
- Start from: Gateway of SAHARA, with the company open
- Limitations: none stated in this article
- Source URL: https://help.thesaharalabs.com/core/docs/import/
- Sections:
  - From an XML file: https://help.thesaharalabs.com/core/docs/import/#from-an-xml-file
  - From a spreadsheet: Bulk Import: https://help.thesaharalabs.com/core/docs/import/#from-a-spreadsheet-bulk-import
  - Bank statements: https://help.thesaharalabs.com/core/docs/import/#bank-statements
  - Check your books after importing: https://help.thesaharalabs.com/core/docs/import/#check-your-books-after-importing

---

## From an XML file

SAHARA Core imports accounting data from an **XML file** in the widely used data-interchange format (the file starts with `<ENVELOPE>`). Export your masters and transactions as XML from the software you use now.

Open **Alt+O (Import) › Masters** or **› Transactions**. Both open the same five-step wizard:

1. **Upload**: *Choose file…* (Alt+O) or *Paste XML* (Alt+P).
2. **Parse**: SAHARA Core counts what it found: groups, ledgers, stock items, locations, vouchers, and any rows it could not read.
3. **Map groups**: for any group it could not place, press **F4** and pick a ledger from the list.
4. **Dry-run preview**: accounts, ledgers, locations, opening balances and every exception. *Answer each exception: nothing is chosen for you.* Nothing is written at this step.
5. **Commit**: SAHARA Core writes the import and shows what it created: accounts, ledgers, items, godowns, units and vouchers.

Alt+X abandons the import at any step.

**What comes across:** groups, ledgers, units, stock items, stock groups and categories, godowns, cost centres, voucher types, vouchers, opening balances and cheque details. Importing the same file again updates changed ledgers and items. A voucher that is unchanged is skipped; a voucher edited since (a higher Alter ID) replaces the old one, which is reversed.

**Safety:** commit is refused while any exception is unanswered, or if the file changed after you uploaded it. A damaged file imports nothing: the message says where the file is damaged and asks you to export it again and start a new import.

## From a spreadsheet: Bulk Import

Open **Gateway › Create › Bulk Import**. Copy rows from Excel or any spreadsheet and paste them in, for **items, ledgers, locations, units or batches**. You see a preview before anything is saved, and duplicates are held back.

## Bank statements

Open **Banking › Bank Reconciliation Summary**, choose the bank, then import the statement file (**CSV, TSV or text**). Imported rows appear in *Imported Bank Data*; rows already imported are skipped.

## Check your books after importing

Compare SAHARA Core’s **Trial Balance** and **Profit & Loss** with your old books for the same dates. If a figure differs, tell us before you rely on it.
