Import data

The import data feature allows you to import data from .txt, .csv, .xls, .xlsx, .mdb, and .accdb format files. You can select which sheets or tables are included in the import and you can select the specific columns to import from the source. Additionally, you can map the column from the source that is associated with the target column.

The import data must be limited to 1,048,576 rows and 16,384 columns.

If you are importing from Microsoft Access databases, or using them as data sources for input pipes, you may need to install the Microsoft Access Database Engine Redistributable.

Import data formats

When importing data using the Import Data function in the Model menu, you can use files in one of several supported formats:

  • Microsoft Excel (.xlsx, .xls)
  • Comma separated value (.csv)
  • Tab delimited text (.txt)
  • Microsoft Access (.accdb, .mdb)

Keep the following in mind to ensure successful imports:

  • Excel, csv and txt files should include a row with column headers. In Access, the names of the table columns will be the used.
  • You do not need to populate all columns in the target table, although you must populate the required columns such as Name in the Products table. Any missing columns will be skipped.
  • Column names do not need to match those in the Supply Chain Guru X model database. If column names do not match, you have the opportunity to map columns from the source to the destination.
  • For the comma separated value format (.csv), if any of your field values contain a comma, you must enclose the entire value in quotes. For example, "Retail pack, 24 piece" ensures that the value is not separated into 2 different columns.

Excel format

You can easily create a template Excel file by exporting from a data table or using the Export Data function in the Model menu to export a number of tables. When using Export Data, you have an option to "Export only structure".

If you are creating the Excel file outside Supply Chain Guru X, create a separate sheet for each Supply Chain Guru X you want to import into. The sheet name should reflect the target table in Supply Chain Guru X. In the first row of each sheet enter the column names. Each data row should be populated with values in the order of the column headings

Comma separated value format

In this format, create a row with the column headings, separated by commas. Each data row should be populated with values in the order of the column headings, separated by commas. The following is an example of a .csv file that can be used to populate records in the Products table. Note that we have enclosed the Name value in the third record in quotes, since it includes a comma. For columns not included in the source file, if default values are defined, these values are populated in the new records.

Name,Unit Price,Unit Weight,Unit Volume,Type,Class,Status

Raw Material_01,0,10,1,Discrete,100,Include

Raw Material_02,0,10,1,Discrete,100,Include

"Raw, Alternative Material_03",0,10,1,Discrete,100,Include

Tab delimited text format

In this format, create a row with the column headings, separated by tabs. Each data row should be populated with values in the order of the column headings, separated by tabs. The following is an example of a .txt file that can be used to populate records in the Products table. For columns not included in the source file, if default values are defined, these values are populated in the new records.

Name Unit Value Unit Price Unit Weight Type Class Status
Raw Material_01 1 0 10 Discrete 100 Include  
Raw Material_02 2 0 10 Discrete 100 Include  
Raw Material_03 3 0 10 Discrete 100 Include  

Access format

In Access, create a separate table for each Supply Chain Guru X you want to import into. Define the Field Name values in Access as the column names, then enter records with values populated in the order of the columns.

Last modified: Wednesday May 15, 2024

Is this useful?