Content tags: BOM template import, override BOM line, exclude BOM line, additional BOM line, line key, template link, advanced BOM
Labels: BOM, templates, import
Once you're comfortable with the basic BOM importer, you can also link BOM templates and fine-tune the lines they contribute — all from the same Excel file. These options are for occasional setup work; most day-to-day imports only use plain packaging lines.
[VIDEO: Walkthrough of linking a template in the file and using override, additional, and exclude]
Linking a template
Add a row with Row type set to template_link and the template's exact name in the Template column. The product then inherits that template's lines.
| Item number | Row type | Template | Enabled |
|---|---|---|---|
| AURORA-TEE | template_link | Standard garment packaging | Yes |
Important: Template links are replaced on import just like lines. To keep a template linked, include its
template_linkrow every time you import that product.
Adding packaging on top of a template
To add a line alongside what a template already contributes, use a normal line with Line effect set to additional. It never replaces anything. Here the Black colorway gets a tissue sheet in addition to the inherited packaging:
| Item number | Row type | Line type | Scope | Scope attributes | Component item number | Quantity | Line effect |
|---|---|---|---|---|---|---|---|
| AURORA-TEE | line | packaging | attributes | Color: Black | PKG-TISSUE | 1 | additional |
Referencing an inherited line with a Line key
To change or remove a line that comes from a template, you first need a way to point at it. Add a template_line row that describes the inherited line and give it a Line key (any unique label — T1, T2, and so on by convention). This row creates nothing on its own; it's only a handle.
The template_line row must match exactly one line in the named template — the importer matches on line type, scope, component item number, component SKU, and scope attributes. If it matches none or several, you'll get a "Could not uniquely resolve template line" error.
Overriding an inherited line
An override replaces an inherited line for the same packaging product — typically to change its quantity. Reference the inherited line through Overrides template line. Here the 3-pack socks need three care labels instead of the template's one:
| Item number | Row type | Line key | Template | Line type | Scope | Component item number | Quantity | Line effect | Overrides template line |
|---|---|---|---|---|---|---|---|---|---|
| AURORA-SOCKS | template_link | Standard garment packaging | |||||||
| AURORA-SOCKS | template_line | T1 | Standard garment packaging | packaging | product | PKG-CARELABEL | 1 | ||
| AURORA-SOCKS | line | packaging | product | PKG-CARELABEL | 3 | override | T1 |
Excluding and swapping a line
To remove an inherited line entirely, use exclude and point Overrides template line at its template_line row. The exclude row still needs the same Component item number as the line it removes.
Because override only works for the same packaging product, swapping one packaging product for another is done by excluding the old line and adding the new one. Here the jacket drops the inherited medium polybag and uses a large one:
| Item number | Row type | Line key | Template | Line type | Scope | Component item number | Quantity | Line effect | Overrides template line |
|---|---|---|---|---|---|---|---|---|---|
| AURORA-JACKET | template_link | Standard garment packaging | |||||||
| AURORA-JACKET | template_line | T1 | Standard garment packaging | packaging | product | PKG-POLY-M | 1 | ||
| AURORA-JACKET | line | packaging | product | PKG-POLY-M | 1 | exclude | T1 | ||
| AURORA-JACKET | line | packaging | product | PKG-POLY-L | 1 |
Line effect reference
| Line effect | What it does |
|---|---|
base | A normal line. This is the default when the column is blank. |
additional | Adds a line alongside inherited ones — never replaces. |
override | Replaces an inherited line for the same packaging product. |
exclude | Removes a specific inherited template line. Needs Overrides template line. |
Tip: Only the line being referenced needs a Line key. The override or exclude line just fills in Overrides template line with that key — it doesn't need a key of its own.
Overriding another line in the same product
The Overrides BOM line column works the same way but points at another local line row in the file (by its Line key) instead of a template line. This is rarely needed — most setups only override template lines.
Troubleshooting
| Message | Cause |
|---|---|
| No BOM template found with name … | The Template name doesn't match a template exactly. Check spelling and spacing. |
| Could not uniquely resolve template line … | A template_line row matched zero or several template lines. Make its line type, scope, component, and attributes match the intended line exactly. |
| Overrides template line … does not match any template_line row in the file | The key in Overrides template line isn't defined on a template_line row for that product. |
| Overrides BOM line … does not match any line in the file | The key in Overrides BOM line isn't defined on a line row for that product. |
Related articles
- [LINK: Importing and exporting BOMs — the basic export, edit, and import workflow]
- [LINK: Setting up BOMs and BOM templates — building BOMs and templates in the product editor]