Importing data to catalogs

By importing data to a catalog, you can:

Important: Importing data to the catalog is an asynchronous process, which means your data is added to a queue and will become available after processing.

Import modes

When importing data into your catalog, you can choose how to handle existing and new records. You can use the following options:

  1. Create or overwrite records
    How it works:

    • If an item does not exist in the catalog, it will be created as a new record.
    • If the item already exists, the entire record will be fully updated, replacing all existing parameters with the new data.

    When to use it:
    You want to discard some or all items in the catalog and replace them with their new versions, without keeping any of their old data.
    Example:

    Before import Imported data Results after import
    Item A:
    {
      "Name": "Widget",
      "Price": 10,
      "Color": "Red"
    }
    Item A:
    {
      "Name": "Widget",
      "Price": 12
    }
    Item A:
    {
      "Name": "Widget",
      "Price": 12
    } 
    (Color removed)
    Item B does not exist Item B:
    {
      "Name": "Gadget",
      "Price": 25
    } 
    Item B:
    {
      "Name": "Gadget",
      "Price": 25
    } 
  2. Create or partial update
    How it works:

    • If an item does not exist, it will be created as a new record.
    • If the item already exists, only the parameters included in the import will be updated or added; existing parameters not mentioned remain unchanged.

    When to use it:
    You want to update specific parts of existing records without losing any other data, allowing incremental or additive changes.
    Example:

    Before import Imported data Results after import
    Item A:
    {
      "Name": "Widget",
      "Price": 10,
      "Color": "Red"
    }
    Item A:
    {
      "Price": 12
    }
    Item A:
    {
      "Name": "Widget",
      "Price": 12,
      "Color": "Red"
    }
    Item B does not exist Item B:
    {
      "Name": "Gadget",
      "Price": 25
    } 
    Item B:
    {
      "Name": "Gadget",
      "Price": 25
    } 

Summary

Option Creates new records? Updates existing records? Update type When to use
Create or overwrite records Yes Yes Full replacement Completely refresh existing data
Create or partial update Yes Yes Partial / additive Incrementally update or add parameters

Requirements


  • You need user permissions that grants you access to Simple Imports and/or Automation.
  • Create a catalog.
  • Prepare a file with data:
    • To import a single file one time, prepare a .csv file.
    • To schedule import in Automation, prepare a file in one of the following formats: csv, .json, .jsonl, or .xml

Tips for preparing a CSV file

  • Recommended file metacharacters:
    • The character that separates columns (delimiter): ,
    • The character that is used to contain text (quotation mark): "
    • The character (escape character) that changes the default interpretation of a character or string which follows escape character: \
  • Spaces and special characters in the column headers are not allowed.
  • .csv files must be UTF-8 encoded
  • The file cannot contain empty fields. If you want to leave empty fields, enter the null value.
  • Maximum file size: 200 MB.

Procedure


Selecting the file for import

In this part of the process, you will upload a file from your device.

  1. Go to Data Management icon Data Management > Data Import > New import.
  2. As the data type for import, select Catalog’s records.
  3. As the import method, select one of the following options:
    • Import a local file - To import a single .csv file to Synerise.
    • Import in Automation - To import a .csv, .json, .jsonl, and .xml files and execute periodical imports.
  1. Upload the .csv file by using the + Upload file or drop one here field.
  2. Optionally, you can customize the file metacharacters by clicking the arrow down icon.
    1. From the Delimiter dropdown, select the character that marks the end of a column.
    2. From the Quotation mark dropdown list, select the characters that contain the text or data type.
    3. From the Escape character dropdown lists, select the character which changes the default interpretation of a character or a string followed by the escape character.
  3. To proceed to the next step, click the Next button.

Selecting catalog

In this part of the process, you will select the catalog to which the data will be imported, provide the name of the column which contains the unique identifiers of the items, and select the import mode.

If you opened the import creator from the view of a catalog, (Data Management > Catalogs), that catalog will be selected automatically.

Selection of the catalog
Selection of the catalog
  1. From the Select catalog dropdown list, select the catalog to which the data from the file will be imported.
  2. In Primary key, enter the name of the column which contains the unique identifiers of the items.
    This field accepts snippets and inserts.
  3. In the Import modes section, select how data will be updated in the catalog:
    • Create or overwrite records - if an item from the file exists in the catalog, the entire record in the catalog is overwritten with data from the file;
    • Create or partial update - if an item from the file exists in the catalog, the record is modified - new parameters are added, matching parameters are updated. If a parameter doesn’t exist in the file, it’s not modified in the catalog. You can learn more about import modes in Import modes section.
  4. Click Next.

Launching import

After selecting the column that contains a primary key you can launch the import by clicking Run import.

😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker