Skip to main content

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 readThe command that opens itThe source window and its list
Entry linesImport 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 numbersThe 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 listThe 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+O shortcut 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.

FieldDescriptionRequiredValues and rules
File (Alt+F)The path of the text file.YesExample: D:\Import\entry.txt. It starts with the last file the program read with this source.
Browse buttonOpens an open-file window.NoThe filter is Text files (*.txt) or All files (*.*).
File FieldsA list of check boxes for the fields of the line. Tick the fields that your file carries.YesTick at least one field. They start with what you saved last time.
ButtonWhat it does
OkChecks 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.
CancelCloses 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.

FieldWhat the program reads from itRequiredValues and rules
Account CodeThe account code.Yes (Account Code or Account Name)The program matches the code exactly. An account that has sub accounts is not accepted.
Account NameThe account name or its Latin name.Yes (one of the two)The program matches the name, then the Latin name.
NotesThe notes of the line.NoText.
DebitThe debit amount.NoThe program always reads it as positive.
CreditThe credit amount.NoThe program always reads it as positive.
CurrencyThe code, name or Latin name of the currency.NoThe program does not put the currency in the line unless you also tick Parity.
ParityThe currency parity.NoA number. Used with Currency.
CategoryThe category of the line.NoText.
Cost centerThe code, name or Latin name of the cost center.No
DateThe date of the line.NoIn the date format of the program, such as 05-01-2026.
Contra accountThe name or code of the contra account.NoThe program matches the name, then the code.
CustomerThe customer name.NoThe program matches the name exactly.

Reading rules:

  • The program splits each line with the Tab character. 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.

FieldDescriptionRequiredValues and rules
File (Alt+F)The path of the XML file.YesExample: D:\Import\entry.xml.
Browse buttonOpens an open-file window.NoThe filter is Text files (*.txt) or All files (*.*).
File FieldsA list of what the program reads from each line in the file.YesTen 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.
ButtonWhat it does
OkChecks the file name, that it exists and that a field is ticked, then closes the window so the program reads the file.
CancelCloses the window without reading.

What the program does with the file:

  1. It checks that the file has the version element with the value that this source accepts. Otherwise it shows the message "Topic not found".
  2. 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.
  3. It reads the lines of the entry. From each line it takes the fields that you left ticked.
  4. 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.

FieldDescriptionRequiredValues and rules
File (Alt+F)The path of the text file.YesExample: D:\Import\packing.txt.
Browse buttonOpens an open-file window.NoThe filter is Text files (*.txt) or All files (*.*).
File FieldsA list of check boxes.YesTick at least one field.
ButtonWhat it does
OkChecks the file name, that it exists and that a field is ticked, then saves and closes the window so the program reads the file.
CancelCloses 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.

FieldWhat the program reads from itRequiredValues and rules
Cash NoThe number of the box that holds the item.NoA whole number.
Material CodeThe material code.No
Material NameThe material name.No
BarcodeThe barcode of the material.No
QtyThe quantity.NoA number.
UnitThe unit name.NoText.
  • The default separator is the Tab character, 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 to Tab for 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.

FieldDescriptionRequiredValues and rules
File (Alt+F)The path of the text file.YesExample: D:\Import\serials.txt. It starts with the last file the program read with this source.
Browse buttonOpens an open-file window.NoThe filter is Text files (*.txt) or All files (*.*).
ButtonWhat it does
OkChecks the file name and that it exists, then saves the name and closes the window so the program reads the file.
CancelCloses the window without reading.
  • From each line the program takes the first value, before the Tab character, 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​

MessageWhy it appearsWhat 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 pathReading 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 numberNo 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 itThe 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 itThe 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 itThe 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.

This page applies to alameen ERP 10, version 10.1.79.764.