Skip to main content

Open in TWICE Admin

inventory/stock-items
Import a file to register many stock items at once, one stock item per row. The import also creates any SKU, location or attribute your file names that does not exist yet. Inventory Tracking explains how a row’s quantity decides between a stock item per unit and a pool.

Prerequisites

Required permissions:
  • Create and edit stock items (inventory:stock_item:create) to create the stock items.
  • Create and edit attributes (inventory:attribute:create), checked on every import.
  • Create and edit SKUs (inventory:sku:create) for a SKU your file names that does not exist yet.
  • Create and edit locations (location_settings:contact_info:create) for a location name that does not exist yet.
Every built-in role holds the first three. Manager, Admin and Owner hold the fourth and Member does not, so a Member’s import fails on an unknown location name. See Users & Roles.
Have ready before you start:
  • A CSV, XLS or XLSX file with a header row and one row per stock item. Download Template on the first step of the import gives you the headers.
  • Exact location names, as listed under Settings → Locations. A name that matches none, down to case and spaces, creates a new location.
  • The attributes you want filled, created first under Settings → Attributes & Tags. Any other column becomes a new attribute.
  • Codes kept as text. A spreadsheet reads 0123 as a number and drops the zero, and the import creates a stock item coded 123 without a warning, which a scan of 0123 does not find. Set the Code and SKU Code columns to text before you paste into them.
  • A CSV imported into the spreadsheet, not opened. Use Data → From Text/CSV in Excel and turn data type detection off, or File → Import in Google Sheets and turn off converting text to numbers.

The walkthrough

1

Open Import CSV

Open Inventory → Stock items in the sidebar. Click Register Items in the top-right corner and choose Import CSV. The Import articles dialog opens on its Upload step, with the five steps of the import across the top.
The Register Items menu open on the Stock items table, with Import CSV highlighted
2

Upload the file

Drag your file onto the box on the left, or click Browse files in it and pick the file. The list on the right shows each Expected column, and Download Template saves a file with those headers. The Select header step opens once the file is read.
The import dialog's Upload step, with Browse files and Download Template highlighted
3

Select the header row

Select the radio button on the row that holds your column names. Rows above it are struck through and left out of the import. Click Continue at the bottom right. The Match Columns step opens.
The Select header step, with the header row's radio button and Continue highlighted
4

Check each column's match

Match Columns lists every column in your file with example data. Under Import as column, check the guess for each one and pick the right column from the list. With Item Name or Location unmatched, Continue shows a warning naming it instead of moving on.
The Match Columns step, with the Import as column heading and the Location row's match highlighted
5

Decide what becomes an attribute

A column with no match reads Add as new column and becomes a new attribute on your account. Set it to Ignore column if you do not want it. To keep it, pick its Attribute group and Attribute format, but not Select or Multi-select, which make the import fail. Click Continue.
The Colour row set to add a new column, with its attribute group and format fields highlighted
6

Check the rows

Validate data shows every row. A red row has an error, and the icon in the failing cell gives the reason. Import summary on the right counts Rows to import and lists new columns and new Location values. Fix your file and start again, or go on: red rows are not imported.
The Validate data step with the Import summary card and its row count highlighted
7

Run the import

Click Complete at the bottom right. A large file takes a while. Import completed confirms the import. Click Close, and the Stock items table reloads with the new rows.
The Complete step confirming the import, with Close highlighted

How do I know it worked?

  • Import completed shows at the end of the import.
  • The new rows are listed in Inventory → Stock items. Choose All locations in the location selector to see the rows at every location.
  • A row with a quantity of 2 or more is one stock item, and its page shows the count, for example 5 Items.
  • New SKUs, locations and attributes are listed under Inventory → SKUs, Settings → Locations and Settings → Attributes & Tags.

Troubleshooting / common pitfalls

The import pools a row whose Quantity is 2 or more into one stock item. To track the units individually, give each unit its own row with a quantity of 1. See Inventory Tracking.
A Location value that matched no location exactly, down to case and spaces, created a new one with no address or opening hours. Check Settings → Locations after every import. See Locations.
What the run created before it failed stays: new locations, SKUs and attributes, and any batch of stock items that went through. Check Inventory → Stock items and those lists before you click Retry or upload again. See Get your stock into TWICE.

Inventory Tracking

One stock item per unit or one pool, and when each is right.

Getting stock in

Every walkthrough for bringing stock into TWICE Commerce.

Register stock items

Register a handful of units from a dialog.

Register from photos

Let TWICE Commerce suggest the name and attributes from a photo.

Attributes

What an attribute is before the import creates more.