Catalogue Import Definitions

A product file, or catalogue, is a delimited file, usually a comma separated value (CSV) file, containing a supplier's items. A product file import definition defines what information is within which column. This makes sure that the correct information is added to the Horizon database, in the correct place, so you can find information on the Stock Card and display information on the Products and Product Details pages on your HorizonWeb site.

Opening Define Import

  • From the Utilities menu, click Define Import. The Define Import window opens.

    Define Import

Where are my import definitions?

The import definitions used to import catalogues are stored in your Database.

  • Save – updates the definition.
  • Delete – deletes the definition.
  • Clear – clears the fields in Define import, ready for a new definition.
  • Create New – create a new definition with all the fields entered.

So they can be portable, you can save and load definitions from your File system.

  • Save – save to a file
  • Load – load from a file
  • Load all – load all the definitions from the ImportDefs folder located where Horizon is installed.

ECI Standard Import Definitions

There are three standard definitions. These cannot be edited. When we add new data columns to Data Services portal, and to Automatic Catalogue Import, we will also update the standard import definitions. When we add a new column, we'll add a new field to Define Import too, so you can add them to your own definitions.

  • ECI Standard UK Catalogue Import – this is the standard import with VAT codes that map to UK £ catalogues from FusionPlus
  • ECI Standard IE Catalogue Import – this is the standard import with VAT codes that map to IRE € catalogues from FusionPlus
  • ECI Standard UK Catalogue Import Short Description – this is the same as the ECI Standard UK import except it uses a Short Description.

Note: The VAT Code mappings used are to our recommended codes.

Searching for a definition

To search for a definition that has already been loaded into your database:

  1. Click in the Import Definition list and type the name of the definition. As you type, the list of definitions changes.
  2. When the definition you're searching for is in the Import Definition box, press Enter (or click the definition in the dropdown list).

The definition opens, displaying which fields will be populated by which columns.

Editing a definition

  1. In the Import Definition list, search for the definition you want to edit. The definition loads into the Define Import window.
  2. Modify the definition using the fields described below. Under the Database group, click Save.
  3. You are notified that the imported definition has been saved.

Saving a definition to a file

  1. In the Import Definition list, search for the definition you want to edit. The definition loads into the Define Import window.
  2. Under the File system group, click Save. The Save File window opens.
  3. Navigate to where you want to save the file.
  4. Type a File name, then click Save. The import definition file is saved with a .imp file extension.

Creating a new definition

  1. Type a name into the Import Name box.

    Note: You cannot have import definitions with duplicate names.

  2. Under the Database group, click Create new.

    Note: Create new will create a new definition with all the fields entered. Typing into the Import name box, then clicking Create new, creates a named but otherwise blank definition you can then edit.

Loading a definition from a file

Import definitions can be loaded from files that have been created as import definitions from Horizon. When saved, they are given a .imp file extension.

  1. Under the File System group, click Load. The Import Files window opens.
  2. Browse to the import definition file, select it, then click Open.
  3. You are notified when the import file has loaded. Note that this can be a long process as several checks of the file are made during the import.
  4. At this point your import definition is not in your database, so cannot be used.
  5. In the Import name box, change the definition's name so it is unique.
  6. Under the Database group, click Create new. A new definition is added to your database using the configuration you have specified. The Import name entered is now shown in the Import definition list, showing that this is the selected definition and can be edited.

Configuring a definition

When editing a definition, or creating a new definition, the following can be configured:

  1. Complete:
    • Import name – the name of the import, e.g. ECI Standard UK Catalogue Import.
    • Supplier (optional) – if you complete this the supplier will be selected when you use the import.
    • Catalogue (optional) – completes this box when you use the import.
    • Data file-name (optional) – the name of the actual catalogue file you are going to import.

    Define Import

  2. Complete:
    • Default ISPC code – The Industry Standard Product Classification (ISPC) is a common language for classifying office products. When Full ISPC is a column in the catalogue (see Fields Definitions), and the catalogue item doesn't specify an ISPC code, this code is used instead. The Default ISPC code is not used if Full ISPC is not defined.

      Define Import

  3. The Format group must be filled in as this tells the system what type of file it is, without this it will not import.
    • 'Skip ? Lines' is used to tell the import to miss the first 'x' lines of the file. For example if you have column headings in row one of the file you need to skip one line. The most common type of file for imports is CSV. If possible, you should always try and save your data files in this format. Excel 97-2003 workbook (.xls) is another common format.
    • For CSV and XLS, the delimiter is a comma, so type 44 in to the Delimiter box. 44 is the default setting when creating a new definition. This is the decimal ASCII code for a comma. Other commonly used values are 9 = Tab Delimited and 0 = fixed length. For other decimal ASCII codes, refer to the World Wide Web: example source (external link).

      Define Import

      Note: The most common problem faced by users creating their own import definitions, is not setting a delimiter. 44 for a CSV file is the most common setting.

    • Encoding sets the encoding type used for the CSV file, either UTF-8 or ANSI. Which was used is up to your supplier, and it's difficult to detect it automatically. Most files, including Data Services Portal files, use UTF-8 so if you don't set it in your import file, then UTF-8 is selected in Import Files by default.

    • To check what encoding has been used on your file

      • if the file is zipped, extract it from the archive.
      • Right-click the CSV file, and from the context menu click Open with > Notepad. The encoding is shown bottom right in the status bar.
      • If you can't see the status bar, then from the File menu, click Save as… and the encoding is shown to the left of the Save button.
      • Click Cancel.
  4. The Type options dictate what the import will do.

    Define Import

  5. To tell the import where to find each piece of data within the file you are importing, you will need to tell it which field is in what column in the data file. To do this enter the column number into the relevant field. If column 'A' in your data file is Code then type '1' in the Item Code row, in the Column column. You can give the field a length limit but this is not required. This then needs to be done for each column in the file you wish to import.

    Define Import

  6. The Pricing group should be filled in like the Fields above. Enter the column that each price format is in within the data file. The Factor column is used to adjust the price when importing. It is recommended putting a 1 in this column if you are using the standard price.

    Define Import

  7. The Look-ups section is used to link items to products. If this is the first time a catalogue is loaded, and the code added doesn't previously exist, the new item is linked to an existing product with a look-up. It is also used in conjunction with the option Remerge existing to merge items that already exist on your system: when selected, products that match on look-ups are merged. It is recommended that you try this option out on a test database first. This is because the process cannot be undone, unless you unlink each item individually using Create product.

    Note: Barcode catalogues should not have a pack size of 0. If they do, pack size is changed to 1.

    Look-ups

    • The import definition can specify up to four look-up columns. Type the trader code for the supplier in each numbered box, then in the corresponding Column box, the column number that holds that supplier's item code. In Import Files, these are shown in the Look-ups group, and can be changed before clicking Load product file.
    • Any – selects the option Look up any supplier in Import Files: When cleared, look-ups are matched against the suppliers' catalogues listed in the Import Files > Look-ups group. When selected, look-ups are matched against any supplier's catalogue and the Look-ups group is made unavailable. Items are matched using (highest priority first) a) the code from the catalogue, b) look-ups, c) barcode (if Match barcode is selected). If Active only is selected then both the catalogue and item matched to must be in use.
    • Manufacturer code
    • 14 – Selects the option Force 14 barcode in Import Files. When selected, if the barcode is not 14 characters in length, 0s are added to the start until it is 14 characters long.
    • Look-up – selects the option Match barcode in Import Files: when selected, if a barcode is included in the catalogue, it is used to match the item to existing products.
  8. The Attributes group lets you define a number of columns which can hold product attribute data. It also lets you include attributes in item descriptions.

    Note: Attributes must be saved to your definition files, because they are bespoke to each database. If you get a definition file that includes attributes, delete them and re-add them.

    1. In the Name list, select an attribute.
    2. In the Column box, type the column number that holds that attribute data.
    3. In the Description order box, type the position that the attribute should be added to the item description for child products. All attributes are added at the beginning of the description in the order defined, 1 being first. 0 means the attribute is not included in the description.
    4. Click Add.
    5. Repeat for each attribute.
    6. To delete an attribute from the list, right-click the attribute and from the context menu, click Delete.

      Attributes

    Note: When importing, attributes are added to the product. Existing attributes are not replaced.

    Note: If a Master Code column is set, then empty attributes are added to the master product for the attributes of its child products. For example, if a catalogue contains shirts and trousers, you can add the attribute Leg length to the import. Leg length will only be imported as an empty attribute for the trousers master products because the Leg length column for shirts is empty in the catalogue.

  9. The next set of options set the default setting when the import definition is opened. If the LOCK (No change when running) option is selected, the options cannot be changed on the import product file screen.

    Define Import

  10. The Filter is used if you have a column in the catalogue that dictates if the product is to be imported or not. For example, the Integra catalogue includes products that are not included in the printed catalogue, so a column is added to tell the system which appear in this. To use the filter, set the column in the filter box that holds the character which symbolizes if it's to be included or not, then put the character in the 'Test' box. For example, if column 6 in your catalogue held a 'Y' or 'N' to denote if it's in the catalogue or not, you would enter, 'Include: Filter: 6 Test:Y '

    Filter

  11. Once you are happy with the set-up of the import definition, click Save. If you are creating a new definition, the Import Name is then shown in the Import Definition list. You can now select this definition when importing product files.

Deleting an Import Definition

  1. In the Import Definition list, click the name of the definition you want to delete from your database.
  2. Under the Database group, click Delete.
  3. Confirm that you want to delete the definition.

Concept Link IconSee Also