You are currently viewing documentation for Linnworks Desktop, if you are looking for Linnworks.net documentation, click here.






Data Import

Overview

The Linnworks Data Import tool has been deprecated, and replaced by the Linnworks.net Automated Data Import and Export functionality. It should be used instead of this tool. The Linnworks.Net import functionality also includes the ability to set up automated imports. The ability to set up automated imports is still available in Linnworks Desktop, and a guide explaining how to set up such an import can be found below.

Setting up import on every synchronization

You can set up the system to import the data every time you synchronize (click Sync button). This is particularly useful to import new orders coming from different sources for which the direct integration is not always possible (for example your website which is hosted on third party cart provider). Below we describe how to set up automatic import of order from the web, the Order Book import process imports orders only once, therefore the same file can be brought in as many times as you like and only new order will appear on the system.

In Linnworks, go to Settings > Import / Export Automation > Data Import.

  • Click Add New
  • Define new unique name for the step
  • Define which type of file you want to import
  • Specify the location of the file

dataImport2.png

Note: You can set the system to import multiple files from a specified location using a wildcard. This works for FTP as well. For example to import all files begining with Stock from c:\dataimport folder, set the File location path to C:\dataimport\Stock*.csv

Expressions

Sometimes it is necessary to provide data into the system which is not obviously available in the source data file. Expressions are any functional or mathematical equation which takes its variables from the data already available and evaluates it. Let’s look at three examples of expressions when importing orders into the system

1. The import requires column Full Name, however you may have it Title, Surname, Firstname in the data feed as 3 separate columns. We can create an expression

join[Title," ",Surname," ",Firstname]

Where join is a function that takes some parameters. This expression will create a text value that combines all three fields with spaces separating the imported title, surname and first name.

If your import file header fields contain spaces (not recommended) then please use the following expression as an example where first name and last name would appear with a space between them in the imported field.

concat[v{first name}," ",v{last name}]

2. You want to record Tax column, but it is not available in your data source file. You have OrderTotal column and ShippingCosts, and you want to exclude shipping costs from OrderTotal and calculate 15% inclusive tax. Mathematical expression can solve this problem

N2[(Order Total – ShippingCosts) / 23 * 3]

Where N2 is a function which converts the result into two decimal point value

3. Order import procedure requires Status field to be set as PAID, otherwise the order will not be imported. However the status identifiers in your data source file are different, lets say you have 1 for paid, 0 for unpaid (refunded). The logical expression can evaluate the status and output the desired value, for example

iif[OrderStatus=”1”,”PAID”,”NOTPAID”]

Where iif is a function that takes first parameter as evaluation, second as an output if true, third as an output if false

For more information on expressions see  the Expressions documentation.

Note: Order Import requires the Status to contain either PAID or NOTPAID, all other statuses will be ignored and the order will not be imported.

4. Importing Stock Value - N2[Cost * Quantity]

You will need to change the cost to the same name as the column header in your import file, this is the same for Quantity.

Note: If you do not import a stock value it will default to zero so it is a good idea to import the calculated stock value when you import.

Errors

An item with the same key has already been added

This error points towards the CSV file containing multiple columns with the same column header

To resolve this edit the CSV file so that every column has a unique header in first row 

Example Invalid Format

SKU Title Notes Notes Notes
1234 Item 1 Very Big Very Heavy Red
1235 Item 2 Very Small Very Light Blue

Example Valid Format

SKU Title Notes_1 Notes_2 Notes_3
1234 Item 1 Very Big Very Heavy Red
1235 Item 2 Very Small Very Light Blue