Migration Guide of Quick List and Blocked List

When upgrading system from a previous version of Product Cockpit, you can migrate legacy data in the Quickcollection and Blacklist to the new version of Quick List and Blocked List.

Prerequisites

  • Make sure that no user has any item in the new Quick List or Blocked List before data migration, as any existing data in the Quick List or Blocked List will be cleared by the import script during migration.

  • Make sure that for each user, the number of products is no more than 1000 in the legacy Quickcollection or Blacklist, as the maximum size of the new Quick List and Blocked List is 1000 respectively.

Context

Set up a system of the new version, and then perform the following steps the new system.

Procedure

  1. Export data from source tables.
    1. Sign in to Backoffice and navigate to Start of the navigation pathSystem Next navigation step Tools Next navigation step ExportEnd of the navigation path.

      A wizard, which allows you to set the basic parameters for a CronJob, opens. The CronJob will create exported data.

    2. In the Script field, fill in the following script:
    3. Click VALIDATE to validate the script.
    4. Click SAVE to save the script.

      A new ImpEx Media is created.

    5. In the Mode field, choose <Export (No re-import!)>.
    6. Click NEXT to go to Advanced configuration tab.
    7. In the Advanced configuration tab, click START to start the export.

      The Results page opens.

    8. On the Results page, in the Performed CronJob field, make sure <ImpEx-Export: xxxx - FINISHED - SUCCESS> is displayed.
    9. Click DOWNLOAD under Exported Zip File to get the exported data in .csv format.
  2. Convert data to target format.

    The new table has new table name and new attributes name, and some fields need to be updated as well. So before importing data into new tables, the legacy data exported from the old tables should be converted to match the new table format.

    • For Mac/Unix:
      1. Make sure you've put the exported data file dataexport_xxx.csv and the script for converting convert_format.sh in the same folder.

      2. Open a new terminal and navigate to the folder which contains dataexport_xxx.csv and convert_format.sh.

      3. Give convert_format.sh permission by entering:

        chmod +x convert_format.sh

      4. Create a file named converted_file.csv for import by entering::

        ./convert_format.sh dataexport_xxx.csv

    • For Windows:
      1. Make sure you've put the exported data file dataexport_xxx.csv and the batch file for converting convert_format.bat in the same folder.

      2. Open Command Prompt and navigate to the folder which contains dataexport_xxx.csv and convert_format.bat.

      3. Create a file named converted_file.csv for import by entering::

        convert_format.bat

        dataexport_xxx.csv

  3. Import data into target tables via Backoffice.
    1. Sign in to Backoffice and navigate to Start of the navigation pathSystem Next navigation step Tools Next navigation step ImportEnd of the navigation path.

      A wizard, which allows you to set the basic parameters for a CronJob, opens. The CronJob will be used to import data.

    2. Under Upload new ImpEx:, click UPLOAD and select the local converted_file.csv file that you got from Step 2.
    3. Under Upload new ImpEx:, click CREATE.

      In the Choose media: field, <filename>.csv - default catalog:online> is displayed.

    4. Click NEXT to go to Advanced configuration tab.
    5. In the Advanced configuration tab, keep configuration as default and click START.

      The Results tab opens.

    6. In the Results tab, double-click the Cron Job: item.

      A window with import result appears.

    7. In the appeared window, click Done to close the window if <SUCCESS> is shown under Last result.

      The data is migrated and visible in Quick List and Blocked List.