Import from an XML file
Import an XML file written by the export window into another company file (or the same file after a change), then review what the program added, changed and ignored.
Before you begin
- Open the target company file. The button appears if the licence includes warehouses and either the standard reports feature or the import and export from files feature, and the file is not working in multi-files mode.
- You need the permission Import from XML file in Users Management. Without it the button stays visible and nothing happens when you click it.
- The XML file must be of a format version this release accepts, otherwise a message appears.
- Create in the target file the bill, voucher and commercial paper types that the file uses, with the same names, or prepare their matches in the advanced options. Types are matched by name, and voucher types by name and tax settings together.
- The import changes the data of the target file and adds bills and entries. Take a backup before you start.
Steps
Add the file to the list
- Click the File tab, then Import & Export, then in the group Import and Export Cards and Operations click Import from XML file.
- Click New.
- In the File field type the path of the XML or ZIP file, or pick it with the browse button. The program extracts a ZIP file into its folder.
- In the Desc field enter a name you recognise the file by, such as
Aleppo branches January. - In the options list tick what you need. Each option is explained in The options list. Examples: tick Update Materials Cards to update the existing cards instead of ignoring them, and Audit Materials Balances and Prices to recalculate the balances after the import.
- If the type names do not match, or the file is a totals file (daily or total), click Advanced Options. In the grids choose for each imported type the matching type in your file. You can set a customer and a warehouse for each bill type. The fields are in The Advanced Options window.
- Optional: in the advanced options click Save Settings and type a name, to reuse the matches with another file with Load Settings. Then click OK.
- Click OK in the Select File window. The file appears in Imported Files, ticked. Repeat steps 2 to 8 for each extra file.
Run the import
- Tick the files you want to import now and untick the others.
- Click Import. If a message about a type or a duplicate file appears, correct it and click again (see the table below).
- Read the message "Import is completed successfully" after each file, then the last message that lists the imported and not imported files.
- The program opens the import report. Review the rows marked Ignore and their notes, and right-click a card or bill in the report to open it.
Result
- New cards and documents are added to the target file, and existing ones are updated if you ticked the update options. Each file is imported in one operation: if anything in it fails, nothing from it is saved.
- According to the options, the program posts the imported bills or generates their entries, and recalculates the accounts and materials balances.
- The program records the identifier of the imported file, so it does not import it again unless you tick Import Duplicated Files.
- The list of files and their options is saved in the default import settings file on this computer and appears next time.
If something goes wrong
| Message | When it appears | What to do |
|---|---|---|
| Please select file | You ticked no file in the list. | Tick a file and click Import. |
| Please select Contra bill types from Modify button then Customize button | A bill type in the file has no type with the same name in your file. | Open Modify, then Advanced Options, and choose the match. |
| File version is incorrect | The file is of an incompatible format. | Export it from a compatible release. |
| Already imported, import will be canceled | The file is the last file imported into this file. | Tick Import Duplicated Files if that is intended. |
| Please set file description | The Desc field is empty. | Type a description. |
The import window also closes after a failure message other than "Please select file", so open it again and you will find your list saved. The full list of messages is in Messages.
Related
This page applies to alameen ERP 10, version 10.1.79.764.