Data Load utility

This utility loads data from a source file into a target database. Loading the file populates and updates the WebSphere Commerce database. We can also use the Data Load utility to delete data from a database.

(Developer) We can also run the data load utility in the development environment.


Command syntax

Syntax diagram for Data Load utility.


Parameter values


Running the Data Load utility

  1. (Developer) On a command line, go to the WCDE_installdir\bin directory.

  2. (Linux) Open a command line in the Utility server Docker container. Change the directory to utilities_root/bin directory.
    For information about entering and leaving containers, see Running utilities from the Utility server Docker container.

  3. Run the following command to use Data Load utility to run the specified data load order configuration file. The file identifies the input files that include the data to load and identifies the business object configuration files that define how to load the data.

    • (Linux) ./dataload.sh ../LoadOrderFilePath/LoadOrderFile.xml

    • (Developer) dataload ..\LoadOrderFilePath\LoadOrderFile.xml

    Where

      LoadOrderFilePath
      The relative path to the data load order configuration file that identifies your input files and configuration files.

      LoadOrderFile.xml
      The data load order configuration file. Sample files are provided with WebSphere Commerce in the component-based directories in the following directories:

      By default the sample load order configuration file is typically named wc-dataload.xml or wc-dataload-object.xml, where object is the name of the object that we are loading. For example, wc-dataload-catalog-entry.xml

    As an example, the following command runs the Data Load utility to load catalog entry data

    • (Linux) ./dataload.sh ../samples/DataLoad/Catalog/wc-dataload-catalog-entry.xml

    • (Developer) dataload ..\samples\DataLoad\Catalog\wc-dataload-catalog-entry.xml

    As an example, the following command runs the Data Load utility to load catalog entry data, and specifying an alternative environment configuration file to process:

      ./dataload.sh ../samples/DataLoad/Catalog/wc-dataload-catalog-entry.XML ../samples/DataLoad/Catalog/environmentfile.XML

  4. If you loaded catalog filters, then you need to repopulate the EXPRESSION database table by running the PopulateExpressionsForCatalogFilter scheduler job manually or wait for the job to run. For more information about scheduler jobs, see Viewing scheduled jobs.