
Data Extract utility
This utility extracts data from the WebSphere Commerce database into an output file.
The Data Extract utility, which uses the Data Load utility framework, can be run in the staging and production environments. However, you are recommended to run the utility in an environment that has all of the information for that you need to extract for an object. For example, the staging environment might not have inventory or pricing information for a catalog entry. In this case, run the utility on the production environment.
For general information about the Data Extract utility, see Overview of the data extract utility.
Command syntax

Parameter values
- full_path
- Is the full path location of the load order configuration file for the Data Extract utility.
- -DXmlValidation
- (Boolean) Used to turn on or off XML validation. For accuracy, the defined configurations inside the XML files are validated against the Data Extract utility and Data Load utility XSDs. By default, XML validation is turned on (true). If you want to turn off validation, enter -DXmlValidation=false.
- -DLoadOrder
- Specifies the order that data is extracted from the database. This parameter overrides the
LoadOrder element in the load order configuration file. You can specify any number of load items to
extract that you want, with each item separated by a comma. Ensure that parameter values do not
contain white space. If there is white space, enclose the parameters in double quotation marks. For
example,
"-DLoadOrder=loadItemName1, loadItemName2"
- -DConsoleHandler.level
- Used to override the console logging level that is defined in the WC_installdir\wc.ear\xml\config\dataextract\logging.properties file. For example, enter -DConsoleHandler.level=SEVERE to change the console logging level to SEVERE.
- -DFileHandler.level
- Used to override the file logging level that is defined in the WC_installdir\wc.ear\xml\config\dataextract\logging.properties file. For example, enter -DFileHandler.level=WARNING to change the file logging level to WARNING.
- -Dpackage_name.level
- Where package_name is the name of any package. This parameter is used to override the log level
for the specified package. If the package_name is blank
(
-D.level=level name
), then the log level is changed for all packages. The level name can be:OFF
,SEVERE
,WARNING
,INFO
,CONFIG
,FINE
,FINER
,FINEST
, orALL
.To help troubleshoot errors that can occur when you run the Data Extract utility, you can override logging levels. For example, override the following Data Load utility packages that the have logging available that the Data Extract utility can use:
For more information about changing the logging level for a package, see Configuring logging. For more information about logging, see Logging services.-Dcom.ibm.commerce.foundation.dataload.businessobjectbuilder.level -Dcom.ibm.commerce.foundation.dataload.businessobjectmediator.level -Dcom.ibm.commerce.foundation.dataload.config.level -Dcom.ibm.commerce.foundation.dataload.datareader.level -Dcom.ibm.commerce.foundation.dataload.datawriter.level -Dcom.ibm.commerce.foundation.dataload.idresolve.level -Dcom.ibm.commerce.foundation.dataload.database.level -Dcom.ibm.commerce.foundation.dataload.level
Running the Data Extract utility
- Open a command-line utility and go to the following directory:
WC_installdir/bin
WC_installdir\bin
WCDE_installdir\bin
- Run the following command to use Data Extract utility to run the specified load order
configuration file. The file identifies the business object configuration files that define how to
extract the data.
./dataextract.sh ../LoadOrderFilePath/LoadOrderFile.xml
dataextract.bat ..\LoadOrderFilePath\LoadOrderFile.xml
dataextract ..\LoadOrderFilePath\LoadOrderFile.xml
- LoadOrderFilePath
- The relative path to the load order configuration file that identifies the configuration files that you are using with the Data Extract utility.
- LoadOrderFile.xml
- The load order configuration file. Sample files are provided with WebSphere Commerce in the
following directories:
WC_installdir/components/foundation/samples/DataExtract
WC_installdir\components\foundation\samples\DataExtract
WCDE_installdir\components\foundation\samples\DataExtract
./dataextract.sh ../component/foundation/samples/DataExtract/Promotion/wc-dataextract.xml
dataextract.bat ..\component\foundation\samples\DataExtract\Promotion\wc-dataextract.xml
dataextract ..\component\foundation\samples\DataExtract\Promotion\wc-dataextract.xml

WC_installdir/components/foundation/samples/DataExtract
WC_installdir\components\foundation\samples\DataExtract
WCDE_installdir\components\foundation\samples\DataExtract
- Promotions
Commerce Composer objects, such as widgets, layouts, templates, and pages. You must apply the interim fixes for APAR JR53438.fep and APAR JR53438.fp.
Marketing objects, such as activities, campaigns, content, attachments, customer segments, and e-Marketing Spot. You must apply the interim fixes for APAR JR53438.fep and APAR JR53438.fp.
Troubleshooting
You can encounter errors when you run the utility for many reasons. Errors can be caused by incorrect command parameters, configurations, and more. To help troubleshoot errors that are encountered, review the wc-dataextract.log file as the first step in determining the source of your error. This file can be located within the following directory
- WC_installdir\logs
- WCDE_installdir\logs
-Dpackage_name.level
parameter:dataextract.sh wc-dataextract.xml -Dcom.ibm.commerce.catalog.dataload.level=FINER