How to Create a CSV Mapping

This article covers setting up a CSV mapping, required for importing CSV files.

What is a CSV Mapping?

A CSV mapping is a feature that informs ShipWise where to store the data imported from a CSV file. The mapping directs the software to match a ShipWise data field to a specific header in a CSV file.

Why is a CSV Mapping needed?

In order to sync ShipWise fields to a CSV's headers, a CSV mapping will need to be created. ShipWise cannot import a CSV without a mapping. You can create a new mapping or use an existing mapping. 

For example, if the order ID field header in the CSV is named "packageID" it will need to be mapped to "OrderId" so that the values in the "packageID" field will be stored in the "OrderID" field. 


The below CSV field headers are required for importing a CSV file, however, can be set to a different header name in the CSV file as long as it is mapped to the required corresponding ShipWise field.

 

Required Order Level Fields:

Notes:

The "OrderNumber" field values need to be incremented unless the preceding row(s) are duplicated because the order contains multiple items. See below.

If you are importing orders with multiple items, only one item can appear per line of data. You will need to duplicate the first line and add an additional line per item.

  • Make sure to change the duplicated item data to reflect the other item(s)' data. 
  • The additional lines must be the same order Id as the original line. ShipWise will combine these lines into one order when imported if the order ID(s) are matching. 

 

Required Item Level Fields:

Note: When mapping a CSV file, you will notice that each of the dropdown selectors for the corresponding fields contains a "default" option. You can use this option to populate the field with a value that all orders will use for that field. Therefore, although a field is required, you can use the "default" option and leave out the header from the CSV.

For example, often the "default" option is used for "ShipToCountry" and set to "United States" if all the orders in the CSV file are domestic. 

Note: The "ItemOrderNumber" field defaults to the OrderId field.

 


The below CSV field headers are required under certain conditions for importing a CSV file, however, can be set to a different header name in the CSV file as long as it is mapped to the corresponding ShipWise field.

Conditional Order Level Fields

 

Conditional Line Item Level Fields


The below CSV field headers are optional and can be set to a different header name in the CSV file as long as it is mapped to the corresponding ShipWise field.

Optional Order Level Fields

 

Optional Line Item Level Fields


Before importing the CSV file make sure there is nothing that could cause problems such as broken rows or commas in the data.

Steps for creating CSV mapping
  1. On the CSV page click to open the "New CSV Mapping" window
  2. The "New CSV Mapping" window opens.
  3. Enter a name for the mapping.
  4. Create a batch of my CSV orders - option is defaulted to enabled as this is a popular method for shipping CSV orders. Batches are an easy way to ship CSV orders and also a good way to keep track of which CSV file the orders belonged to. 
  5. If importing into a batch, use the Batch Name Options:
    1. Manual batch name - instead of using the name of the file or grouping by value, use this option to enter a custom name for the batch. 
    2. Use file name as default batch name - choose this option if you want to automatically set the file name as the batch name
    3. Create Batches grouped by values in a column - this option will form batches using common values from a specified column. For example, if you want to create batches by the "shipMethod" column. ShipWise will find all the ship method values and import them into individual batches for each of the unique ship methods.
    4. Limit batches to a max order count - if enabled, a numerical field will display, defaulted to 500 hundred orders per batch. If the CSV file contains more than the specified limit it will continue to create additional batches that reach the max limit until it has added all orders to a batch within the limit range. 

7. Choose a File - select an existing CSV file that DesktopShiper will pull in the headers from. 


new CSV mapping2Once a file has been selected, a new window will open for setting up the mapping.

  • If you had selected "manual batch name", it will ask you to name the batch. 
  • There are also the options for mapping the products to the product database, selecting a profile for all the imported orders, and setting a different time zone than UTC.

Next step is to match up all the headers for the Order fields...

Then match up all the headers for the Line Item fields.

When all is done, click the button. ShipWise will add your new mapping to the list of mappings.

A page refresh ( or click the F5 key) may be needed if the new mapping does not appear on the left of the window.


 

Logo_Black_No_Whitespace