Importing products using Kentico Import Toolkit
Kentico Import Toolkit is a utility that allows you to import data from external sources into the system. As a source of data, you can use:
- XML files
- CSV files
- XLSX and XLSM files (MS Excel)
- MS SQL databases
With Kentico Import Toolkit, you are able to:
- Import products from an external source of data into a Kentico website.
- Change product properties using an external source of data.
You can use this procedure to import products into any Kentico website from any of the listed sources of data.
Kentico Import Toolkit does not support importing (uploading) of product images.
Importing products from an external source of data
Taking preparatory steps
Prepare your external source of data, for example an XLSX file. Make sure that all required product properties are included.
Out of the box, the product properties required for import are:
- Name of the product – the same value for the DocumentName, SKUName and DocumentSKUName columns.
- Culture of the product page – the DocumentCulture column.
- Price of the product – the SKUPrice column.
- ID of the site where the products are imported – the SKUSiteID column.
You do not need to set the SKUSiteID property; however, if you do not, the system assigns null to the property, which indicates global products.
Then, if you do not enable global products in the Store configuration application, you get an error when browsing the products (The error description is: “The object does not exist. It may have been deleted by someone else.”)
If it already happened to your Kentico instance, there are several options to fix the products:
- Enable global products. However, this may not be desirable, for example in multi-tenant instances.
-OR- - Change the products’ properties via Kentico Import Toolkit and set theSKUSiteIDproperty.
-OR- - Use a SQL script that will update the SKUSiteID property. If you choose this option, make sure you stop the site when you run the SQL script.
If you want to automatically assign products to their parent section (for example, to assign Mercedes-Benz S500 to the Cars section or Apple iPhone to the Cellphones section), add another column with their ParentNodeID property.
You can find the Node ID property while editing the desired parent page in the Pages application on the Properties -> General tab.
There can be also other required properties depending on the product type which products will use (you choose the page type later during the import).