Skip to main content

Import Asset Cards

The Import Asset Cards wizard reads a text file and matches each line to an existing sub asset card by its Serial Number. It then writes the values of the columns you choose into that card. The wizard does not create new cards. For the practical steps see Import asset cards.

Opening the wizard​

  • Open File > Import & Export. In the group titled "Import Different Types of Cards Exported from Text Files, whether Exported from alameensoft or Other Programs", click Import Asset Cards. The program describes the button as "Import materials cards from other programs as asset cards with the ability they contain serial numbers". See File tab: Tools and Import & Export.
  • The button shows when a file is open, the licence includes the import and export from files feature, customer cards and fixed assets, and the file is not working in multi-files mode.
  • In Users Management the Import Asset Cards option under Operations controls it, in the group headed "Al-Ameen Import/Export Utility".

The wizard has four steps. You move between them with Next and Back, and the title bar of each one is Import Asset Cards. In the last step Next is disabled and Start appears. When you click Cancel in any step the program asks: "Do you want to exit out importing customer cards". This is the wording of the question in this wizard.

Step 1: Introduction​

The page header is "Update added asset's Sub-Cards". It explains that the wizard helps you import fixed assets cards step by step, that the text file can come from alameen or another program and can hold serial numbers and asset data, and that Next moves to the next step, Back to the previous one and Cancel ends the process. It has no fields.

Step 2: Select file​

The page asks for the text file that contains the fixed assets.

FieldDescriptionRequiredValues and rules
File name boxThe path of the text file.YesExample: D:\data\assets.txt. It starts empty every time: the program does not remember the last file.
Browse button (small square next to the path)Opens a file window with the filter Text files (*.txt) or all files.—Puts the chosen path in the box.

When you click Next the program checks that the file exists. If it does not, it shows "The file doesn't exist" with the path under it.

The program reads the file in its own encoding (UTF-8, UTF-16, UTF-32 and others) and skips empty lines.

Step 3: Fields separator​

The page explains that the fields of the text file must be separated by a tab, a comma or something similar, and that you must specify the separator.

OptionDescriptionRequiredValues and rules
TabThe columns are separated by the tab character.—It is the choice every time the wizard opens: the program does not remember the last separator.
CommaThe columns are separated by a comma ,.——
SemicolonThe columns are separated by a semicolon ;.——
OtherThe columns are separated by another character that you type in the box next to it.—The box is enabled only when this option is chosen. The program uses the first character in it. If it is empty, the message "You must specify field separator" appears when you click Next.

Step 4: File fields​

The page header is "File Fields". It explains that you must choose the serial number among the fields of the file, and the line to start the import from.

FieldDescriptionRequiredValues and rules
Start lineThe number of the first line of the file that the program reads, so you can skip a header line.YesA number greater than zero. The default is 1 every time.
Fields gridThe first row holds a list for each column, where you choose what the column holds. Under it are the first 20 lines of the file split by the separator. The first row header is Fields, the column headers are Column and a number, and the line headers are Row and a number.—Up to 35 columns. The grid shows the file from its first line whatever the Start line. When you change Start line the program reads the file again into the grid.
Progress barIt is at the bottom of the window.—It does not move during the import.

Buttons: Start, Back and Cancel.

The first time, every column list is None. After a successful import the program saves the columns you chose for the current Windows user on this computer and shows them next time. It reads the saved columns up to the last column you chose.

The fields you choose from​

Each list shows, in order, None and then the fields below. The first column is what you read in the list. The second column is the field that the program really writes in the sub asset card. The first five choices, from Serial Number to Previous Maintenance, write into the field that carries their name. The other choices write into a different field, as the table shows, because the program reads your choice by its position in the list and then applies a different order of fields.

Choice in the listWhat the program writes in the sub asset card
Serial NumberNothing. It is the key that matches the card.
Previous AdditionsPrevious Accumulation > Additions Value
Previous DepreciationsPrevious Accumulation > Depreciation Value
Previous DisposalsPrevious Accumulation > Disposals
Previous MaintenancePrevious Accumulation > Maintenance Value
BarcodeNotes
Order numberSection
StyleBarcode
OriginOrder number
CompanyStyle
SupplierOrigin
SiteCompany
Shipping TypeSupplier
Shipping NoSite
Arrival PointShipping Type
Import LicenseShipping No
WarrantyArrival Point
Customs DeclarationImport License
Custom DutiesWarranty
Maintenance ContractCustoms Statement
Work License NoCustom Duties
Salvage ValueMaintenance Contract
Daily RentPermission No
Manufacturing DateSalvage Value (the program reads the cell as a number)
Purchase DateDaily Rent (the program reads the cell as a number)
Warranty Begin DateManufacturing Date
Shipping DatePurchase date
Arrival DateWarranty Begin Date
Depreciation Start DateShipping Date
Warranty End DateArrival Date
Customs DateDepreciation Start Date
Maintenance DateWarranty End Date
Maintenance End DateCustoms Statement Date
NotesMaintenance Date (the program reads the cell as a date)
DepartementMaintenance End Date (the program reads the cell as a date)

When you reopen the wizard with saved columns, the list where you chose Notes shows the text Departement, and the list where you chose Departement shows Notes, because the program rewrites the names from the saved position number in a different order. What the program writes stays as in the table above.

Checks when you click Start​

  1. Start line is greater than zero, otherwise "Start line must be more than zero" appears.
  2. You chose Serial Number for at least one column, otherwise "Please select serial number Field" appears.

The program does not check whether you chose the same field for two columns: if you do, the farther column is the one that stays. It does not ask whether you want to start: the import begins as soon as you click Start.

What the import does​

  1. The program skips the lines before Start line.
  2. It splits each line by the separator and reads only the columns you chose.
  3. It looks for a sub asset card whose serial number equals the value in the Serial Number column. If it finds no card it skips the line without a message and does not count it.
  4. In the card it finds, it writes the values of the columns you chose and saves the card at once. Text columns are written as they are, so an empty cell in a text column empties the field. Number columns are written as numbers. A date column changes the field only when the date read from the cell differs from 1/1/1980.
  5. It stops at the first line where the Serial Number cell is empty, with no final message.
  6. When it reaches the end of the file it saves the chosen columns and shows the result message.

The import does not run as one transaction: each card is saved when it is changed, and the program does not undo cards already saved.

Messages​

MessageWhy it appearsWhat to do
"The file doesn't exist" with the pathNo file exists at the path, at Next in step 2.Correct the path.
"You must specify field separator"You chose Other and left the box empty, at Next in step 3.Type the separator character.
"Start line must be more than zero"Start line is zero or empty, at Start.Type 1 or more.
"Please select serial number Field"You did not choose Serial Number for any column, at Start.Choose the serial number column.
"Do you want to exit out importing customer cards"You clicked Cancel.Choose Yes to leave.
"Import is completed successfully" and under it "Modified Assets Count: …"The program reached the end of the file.Check the number of modified cards.

This page applies to alameen ERP 10, version 10.1.79.764.