Import BOM from a CSV file
At Production planning -> BOMs -> Import from CSV it is possible to upload many bills of materials at once, e.g. a BOMs for separate products and/or multi-level BOMs. It's also possible to update existing BOMs via CSV upload.
- Which fields can be imported for BOMs?
- Example import table and file.
- How to import a multi-level BOM?
- How to update existing Bills of Materials via CSV upload?
- Important notes.
- Troubleshooting common issues.
Importing Bills of Materials
What is CSV? CSV (Comma-Separated Values) is a universal format for importing or exporting tabular data. A CSV file can be obtained by saving/exporting e.g. an Excel file as CSV (Comma delimited) (*.csv).
When uploading the CSV file:
- Select and match the names of the fields corresponding to the columns in the data.
- Check the "The first row is heading" option if the first row of the file contains headers. Then the first row will not be imported.
- Select "Do not import" as the column type if some column is not to be imported.
- Click Import to upload the data into the appropriate fields of the database.
- If importing of some data failed, a skip file will be generated and downloaded to your computer, which indicates all errors line-by-line.
The BOM's ID number.
If present, lines with parts are grouped into bills of materials by this column. If BOM number is absent, lines with parts are grouped by product.
If a BOM with this number exists, it will be updated. If a BOM with this number does not exist, a new BOM is created.
If present, the BOM's number is required on every row.
Name of a BOM.
The product's ID number (item code), as in Stock -> Items. This is the "Product" to which the "Part" belongs to.
If a BOM number is absent, or a new BOM is created, the product's ID number is required on every row (this allows importing several BOMs for several products at once. E.g. a Sub-assembly "Product" code is the sub-assembly item code, etc.).
The part's ID number (article code), as in Stock -> Items. This "Part" belongs to the BOM of the "Product".
The relation's ID number.
A line can contain either by a part number or relation number, but not both.
Available, if the Matrix BOM functionality is enabled.
The quantity per unit of "Product".
Any notes, e.g. handling instructions.
A fixed (pre-defined) amount of item which is always consumed in a manufacturing order, not proportional to the order quantity. Available, if function Fixed quantity is enabled.
|PROD-1||PART-01||5||BOM of PROD-1, line 1: raw material PART-01, quantity 5|
|PROD-1||PART-02||7||BOM of PROD-1, line 2: raw material PART-02, quantity 7|
|PROD-2||PART-15||3||BOM of PROD-2, line 1: raw material PART-15, quantity 3|
|PROD-2||PART-16||9||BOM of PROD-2, line 2: raw material PART-16, quantity 9|
|(Up to 3000 lines can be imported at once)|
Download a sample file: import-boms.csv
At Production planning -> BOMs -> Import from CSV, it is possible to import multi-level BOMs.
Importing a multi-level BOM works the same way as importing several different BOMs at the same time:
- Each sub-assembly is a separate item, with its own product code.
- Each sub-assembly has its own BOM.
- Sub-assemblies are used as parts in a higher level BOM, which connects the multi-level BOM structure.
Example, the file structure for a multi-level BOM with 3 levels, 4 BOMs:
|PROD-1||SUB-1||1||BOM of PROD-01 (final assembly), line 1: sub-assembly SUB-1, quantity 1|
|PROD-1||SUB-2||1||BOM of PROD-01 (final assembly), line 2: sub-assembly SUB-2, quantity 1|
|SUB-1||PART-15||2||BOM of SUB-1 (sub-assembly), line 1: raw material PART-15, quantity 2|
|SUB-1||PART-16||3||BOM of SUB-1 (sub-assembly), line 2: raw material PART-16, quantity 3|
|SUB-2||PART-17||4||BOM of SUB-2 (sub-assembly), line 1: raw material PART-17, quantity 4|
|SUB-2||SUB-3||1||BOM of SUB-2 (sub-assembly), line 2: sub-assembly SUB-3, quantity 1|
|SUB-3||PART-18||5||BOM of SUB-3 (sub-assembly), line 1: raw material PART-18, quantity 5|
|SUB-3||PART-19||6||BOM of SUB-3 (sub-assembly), line 2: raw material PART-19, quantity 6|
|(Up to 3000 lines can be imported at once)|
At Production planning -> BOMs -> Import from CSV it is possible to update existing Bills of Materials by uploading a CSV file containing the new BOMs.
Upload a CSV file with bills of materials as described in the help section "Import BOM from a CSV file". A BOM is updated if:
- the file contains a column with a BOM number, and a BOM with this number exists,
- or the file does not contain a column with a BOM number, a column with a product is selected, and the product has a BOM.
Alternatively, it is possible to bulk update one part in selected BOMs at Production planning -> BOMs -> Substitute a part.
- If the imported file contains non-Latin characters, the file must be in UTF-8 (preferred) or Unicode encoding. If Excel is used to save the file, select the "Unicode Text (*.txt)" option in the "Save as type" field. Even though the extension of the file is TXT, it can be imported as a CSV-file.
- The limit is 3000 lines per upload. If the file is bigger, divide it into several smaller files.
- Since importing can be a question of trial-and-error, we strongly suggest making a back-up of the database before importing. In that case, if anything goes wrong, it is always possible to restore the previous session.
If the importing of some data failed, a skip file will be generated and downloaded to your computer, which indicates all errors line-by-line.
- Part numbers in the import file and in MRPeasy do not match. Please use only part numbers to refer to stock items.
- Some parts (or the product) have not been created. All stock items must exist in the software before importing BOMs.
- Incorrect formatting of the import file. Please check that the file contains a column with a product's part number and that this number is set on every line of the BOM.
- Select the correct columns. You must manually select the correct data type for each column.