CSV File Guidelines
You can import products using CSV files only; no other data or file formats are supported. Here are the key points to consider:- Formulas in formula-driven attributes are executed automatically after items have been imported.
- If the CSV file doesn’t have an attribute that’s added to the category, you can add a new column in the CSV with the attribute name in the header. The upload process will populate the value for this attribute.
- Empty rows and columns are ignored.
- Each item should include a category node. If the category node is missing, the item won’t be created.
- Use the -> delimiter for category nodes. Incorrect mapping or absence of category nodes may result in item creation issues.
- The headers, represented in the first row of the CSV file, should match the attributes of the item. While attribute titles aren’t case-sensitive, maintaining case consistency with the original attribute titles is recommended.
- The Action field determines what action is being taken for that row of data.
- When updating or upserting items, entering NULL in a spreadsheet cell will override existing values with blank values.
Supported actions
Attribute data format
When preparing your CSV file for import, ensure that the attribute data format aligns with attribute type requirements. Different attribute types have specific formatting criteria:
The status attribute is imported as live only when all mandatory attributes are provided for the item. Otherwise, the status is automatically updated to draft, regardless of the value you provide in the file.
Prerequisites
Before initiating the item import, ensure that:- Ensure that you have created at least one leaf category with attributes assigned to it to add items to. For more information about creating categories, see the Categories section.
- The CSV file adheres to the guidelines.
Procedure
- In the left menu, click Product Catalog > List > Items. The Items page is displayed.
- Click Import. The Select a leaf category window is displayed.
- Select a Leaf to which you want to import items. The Select a leaf category window is displayed. This window displays the root categories and leaf categories that are configured in Categories.
- Click Next. The Import CSV file window is displayed. This window provides a link to download an example template for the CSV file.
-
To import a CSV file, do one of the following options:
- Drag and drop the CSV file into the window.
- Click Select a File.
- Click Import file.
