Entry and serial number import drivers
This page explains the windows of four drivers that read from a file: two for entry lines (text and XML), one for serial numbers and one for packing lists. Their descriptions appear in the Source list of the window that the references below show. Drivers in general are in Hardware and exchange drivers.
Opening the window
| What you read | The command that opens it | The source window and its list |
|---|---|---|
| Entry lines | Import Entry (Ctrl+R) in the corner menu of the entry grid (see Grid menus). | "Import Entry". The Source list: "Text import entry driver" and "XML import entry driver". |
| Serial numbers | The Import button in the window that enters the serial numbers of a bill item, and in the serial numbers window of bill processing. See Serial number windows and Input serial numbers. | "Import Serial Numbers". The Source list: "Serial Number Text Import File Driver". |
| Packing list | The packing list driver opens the window when it is asked to read a list or to set it up. | No source window of the program lists this kind. |
The source window itself (its list and buttons) is explained in Import bills. The window of the chosen source appears in one of two ways:
- Click Setup in the source window: it always appears.
- Click Ok in the source window: the windows of the text entry, the XML and the packing list appear only if what is saved is incomplete: no file name, the file does not exist, or no field is ticked. The serial numbers window appears only if no file name was saved. In the other cases the program reads the saved file directly. The
Ctrl+Oshortcut in the entry does the same.
The program saves the file name and the ticked fields for the current Windows user on this computer.
Import an entry from a text file
The window title is "Read Materials from File" although it reads entry lines. Each line of the file is a line of the entry, and you define what each column carries.
| Field | Description | Required | Values and rules |
|---|---|---|---|
File (Alt+F) | The path of the text file. | Yes | Example: D:\Import\entry.txt. It starts with the last file the program read with this source. |
| Browse button | Opens an open-file window. | No | The filter is Text files (*.txt) or All files (*.*). |
| File Fields | A list of check boxes for the fields of the line. Tick the fields that your file carries. | Yes | Tick at least one field. They start with what you saved last time. |
| Button | What it does |
|---|---|
| Ok | Checks the file name, that it exists and that a field is ticked (see Messages), then saves the choices and closes the window so the program reads the file. |
| Cancel | Closes the window without reading. |
The fields are in the order of the list, which is the order of the columns of the file: the program reads only the ticked fields, in this order. If you tick Account Code, Debit and Credit, the first column is the code, the second is the debit and the third is the credit.
| Field | What the program reads from it | Required | Values and rules |
|---|---|---|---|
| Account Code | The account code. | Yes (Account Code or Account Name) | The program matches the code exactly. An account that has sub accounts is not accepted. |
| Account Name | The account name or its Latin name. | Yes (one of the two) | The program matches the name, then the Latin name. |
| Notes | The notes of the line. | No | Text. |
| Debit | The debit amount. | No | The program always reads it as positive. |
| Credit | The credit amount. | No | The program always reads it as positive. |
| Currency | The code, name or Latin name of the currency. | No | The program does not put the currency in the line unless you also tick Parity. |
| Parity | The currency parity. | No | A number. Used with Currency. |
| Category | The category of the line. | No | Text. |
| Cost center | The code, name or Latin name of the cost center. | No | |
| Date | The date of the line. | No | In the date format of the program, such as 05-01-2026. |
| Contra account | The name or code of the contra account. | No | The program matches the name, then the code. |
| Customer | The customer name. | No | The program matches the name exactly. |
Reading rules:
- The program splits each line with the
Tabcharacter. This source has no option to change the separator. - An empty cell is not read, but its column stays counted in the order of the columns.
- The program reads only the first 11 columns of each line. If you tick all twelve fields, the last one, Customer, is not read.
- The program reads the file in the encoding that its beginning announces (UTF-8 with signature, UTF-16, UTF-32 or UTF-7), and without such a mark in the current Windows encoding. It skips empty lines.
- The program puts the lines in the entry grid from the line where you stand. From each line it fills only the columns that the grid shows.
- A line whose account does not exist or has sub accounts does not enter, and a message appears for it (see Messages).
Import an entry from an XML file
The window title is also "Read Materials from File". This source reads an XML file that the XML entry export wrote, from another file of the program or from the same file.
| Field | Description | Required | Values and rules |
|---|---|---|---|
File (Alt+F) | The path of the XML file. | Yes | Example: D:\Import\entry.xml. |
| Browse button | Opens an open-file window. | No | The filter is Text files (*.txt) or All files (*.*). |
| File Fields | A list of what the program reads from each line in the file. | Yes | Ten fields: Notes, Debit, Credit, Currency, Parity, Category, Cost center, Date, Contra account and Customer. All are ticked each time the window opens. Untick what you do not want to read. The account is always read. |
| Button | What it does |
|---|---|
| Ok | Checks the file name, that it exists and that a field is ticked, then closes the window so the program reads the file. |
| Cancel | Closes the window without reading. |
What the program does with the file:
- It checks that the file has the version element with the value that this source accepts. Otherwise it shows the message "Topic not found".
- It reads the branches, currencies, accounts and cost centers of the file. For each currency, account or center that you do not have (the program matches by code) it asks you with the question in Messages before creating it.
- It reads the lines of the entry. From each line it takes the fields that you left ticked.
- It puts the lines in the entry grid from the line where you stand, by the same rules as in Import an entry from a text file.
The currencies, accounts and cost centers are created in one transaction with the reading of the file: if you answer No to a question about an account or a cost center, the program undoes what it created of currencies, accounts and centers in this reading.
Import a packing list from a text file
The window title is "Read Materials from File". This source reads a text file in which each line is an item of a packing list.
| Field | Description | Required | Values and rules |
|---|---|---|---|
File (Alt+F) | The path of the text file. | Yes | Example: D:\Import\packing.txt. |
| Browse button | Opens an open-file window. | No | The filter is Text files (*.txt) or All files (*.*). |
| File Fields | A list of check boxes. | Yes | Tick at least one field. |
| Button | What it does |
|---|---|
| Ok | Checks the file name, that it exists and that a field is ticked, then saves and closes the window so the program reads the file. |
| Cancel | Closes the window without reading. |
Options (Alt+O) | Opens the Export Options window to choose the separator between fields (Export Options). |
The fields are in the order of the columns of the file: Cash No, then Material Code, then Material Name, then Barcode, then Qty, then Unit. The program reads only the ticked fields, in this order.
| Field | What the program reads from it | Required | Values and rules |
|---|---|---|---|
| Cash No | The number of the box that holds the item. | No | A whole number. |
| Material Code | The material code. | No | |
| Material Name | The material name. | No | |
| Barcode | The barcode of the material. | No | |
| Qty | The quantity. | No | A number. |
| Unit | The unit name. | No | Text. |
- The default separator is the
Tabcharacter, and Options changes it. The program uses the first character of the separator. It does not save a separator you type yourself in the Other option: it works for the read from the same window, then the program goes back toTabfor the next read. The program does not read the Encoding and Surround Fields by Quotes choices when it reads. - An empty cell stops the reading of the rest of the line, so the columns after it are not read.
- If the program cannot open the file, the message "An error encountered while opening the file" appears with the path. If the file is empty, "File Is Empty" appears.
Import serial numbers from a text file
The window title is "Import bill" although it reads serial numbers. This source reads a text file with one serial number in each line.
| Field | Description | Required | Values and rules |
|---|---|---|---|
File (Alt+F) | The path of the text file. | Yes | Example: D:\Import\serials.txt. It starts with the last file the program read with this source. |
| Browse button | Opens an open-file window. | No | The filter is Text files (*.txt) or All files (*.*). |
| Button | What it does |
|---|---|
| Ok | Checks the file name and that it exists, then saves the name and closes the window so the program reads the file. |
| Cancel | Closes the window without reading. |
- From each line the program takes the first value, before the
Tabcharacter, as a serial number, and ignores the rest of the line. It skips empty lines. - The numbers it reads are added to the serial numbers window that asked for the import, as in Serial number windows.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| "File Name Missing" | You clicked Ok and the path is empty. | Type or choose the path. |
| "The file not found" | You clicked Ok and the path does not point to an existing file. | Correct the path. |
| "Must select an item" | You clicked Ok in a text, XML or packing list window and no field is ticked. | Tick the columns of your file. |
| "File is empty" | The file has no data (text entry and serial numbers). | Choose a file that has lines. |
| "Error reading file:" with the path | Reading the serial numbers file failed. | Check the file and try again. |
| "Account not found" with "Account Code" or "Account Name", the value and the line number | No account has the value of that line when you import an entry. The line does not enter. | Correct the value or define the account, then read again. |
| "Total error line = …" | The reading of an entry ended, and this is the number of lines that the program did not add because their account does not exist or has sub accounts. The message is in English in every language. | Check the messages that appeared before it. |
| "Topic not found" | The XML file is not an entry file: it has no version, its version is not accepted or it has no lines. | Use a file written by the XML entry export of this version. |
| "This file contains new currencies, do you want to add them?" with the code and name of the currency under it | The XML file has a currency that you do not have. The answer buttons are Yes, No and Ignore. | Yes creates it and asks about the next. Ignore creates it and all the later ones without questions. No stops creating currencies and the program continues the reading. |
| "This file contains new accounts, do you want to add them?" with the code and name of the account under it | The XML file has an account that you do not have. The answer buttons are Yes, No and Ignore. | Yes creates it and asks about the next. Ignore creates it and all the later ones without questions. No stops the reading and the program undoes what it created. |
| "This file contains new cost centers, do you want to add them?" with the code and name of the center under it | The XML file has a cost center that you do not have. The same buttons. | The same rules as for accounts. |
For the forms of messages see Messages and callouts.
Related
This page applies to alameen ERP 10, version 10.1.79.764.