Loading marketing objects with the Data Load utility
Before you begin
Ensure that any catalog entries, categories, email templates, or attachment managed files that are associated with the marketing objects that you are loading exist in the target store. When you use the Data Load utility to load marketing data, the utility creates only the marketing objects, descriptive information, and relationships. If the associated objects that the utility does not load do not exist in the target database, the load process can fail since the Data Load utility cannot resolve the unique ID values for the associated objects. If you plan to load marketing objects that need these types of associated objects, you must manually create the object before you load your marketing data.
About this task
You can use the Data Load utility only to insert, replace, or delete marketing objects. Running the utility in update mode to change marketing objects is not supported. When you are loading marketing data with the Data Load utility and use the provided sample configuration files, the utility runs in insert mode by default.
- Activities
- Campaigns
- Content
- Customer segments
- E-Marketing Spots
- Marketing attachments
For more information about the available sample configuration files and the data that can be loaded with each file, see Sample: Loading marketing data.
- The Data Load utility loads data for only a single store in each load operation. You can specify the store identifier in the environment configuration file.
- If your site uses an extended sites store model, you cannot load data for all extended site stores at once. If you want to load asset store objects to extended sites stores, you must load the data into each extended site store individually.
- The sample configuration files that are provided configure the utility to load input files for all supported marketing object types. If you want to load data for only specific object types, you can configure the Data Load utility when you run the utility from a command-line utility to load only specific objects. Use the -DLoadOrder parameter when you run the utility to identify the specific objects to load. If you want to use the -DLoadOrder parameter to load multiple business objects, include the list of load item names for the objects in comma-separated list. Enclose the list in double quotation marks. For example, the following parameter indicates that the utility is to load only the business object load items for marketing activities:-DLoadOrder="MarketingCampaign, MarketingActivity, MarketingElement, MarketingElementNVP"
- When you load changes to replace multiple click actions (image map) for marketing content with no click actions, the multiple click actions can remain after the load process completes. If your input file includes data to set the marketing content to have no click actions, the utility updates the record for the content to reflect the input file change. However, if your input file does not include data to remove the click actions from the COLLIMGMAPAREA table, the click action data remains after the load operation completes. These click actions continue to be associated with the content and display for the content in Management Center and the storefront. To remove the click actions, delete the content, which causes a cascade delete operation that removes the click actions. Then, load data to re-create the content, and if needed, any of the click actions that need to remain. You can also use the Marketing tool to remove or change the click actions for marketing content.
Procedure
-
Create your input files for each type of marketing object that you want to load.
You can use sample input files to help you create your own input files. Copy and edit the sample files to replace the sample data with your own marketing object data. The sample input files are included in the following directory and subdirectories. There is a different subdirectory for each type of marketing object. These directories each include one or more input files for loading all of the information that can be used for each marketing object type.
- WC_installdir/samples/DataLoad/Marketing
- WC_installdir\samples\DataLoad\Marketing
- WCDE_installdir\samples\DataLoad\Marketing
Important: The names of the columns or elements in your input file must use specific names. For more information about these column names and the information that can be in each marketing object input file, see Marketing object input file definitions.Tip: You can use the Data Extract utility to help you generate your input files. If you are creating the same marketing objects in multiple environments, such as for testing purposes, create the objects in one environment with the Marketing tool. Then, extract those objects into output CSV files with the Data Extract utility. You can use these output files as input files for the Data Load utility to load the marketing objects into your other environments. For more information, see Extracting marketing data with the Data Extract utility. -
Create the Data Load utility configuration files that you need to load your marketing
data.
- Optional:
If you want to load custom marketing data, go to each marketing object subdirectory and create
a backup of each business object configuration file.
For example, the CustomerSegment directory includes the following business object configuration files:
- wc-loader-member-group.xml
- wc-loader-member-group-condition.xml
- wc-loader-member-group-description.xml
If you want to load custom data, you must customize your copied business object configuration files to configure the mappings for your custom data. Ensure that you define how the Data Load utility maps your data to the appropriate database table or tables. - Open the data load environment configuration file (wc-dataload-env.xml) for editing and update the configured settings to match your environment settings.
-
Open the data load order configuration file
(wc-dataload.xml) for editing and configure the settings to load your marketing
data.
-
Run the Data Load utility.
If you want to load data for only specific marketing objects, use -DLoadOrder parameter when you run the utility.For example, to load data for only marketing activities, your command can resemble the following command:
- ./dataload.sh ../samples/DataLoad/Marketing/wc-dataload.xml -DLoadOrder="MarketingCampaign, MarketingActivity, MarketingElement, MarketingElementNVP"
- dataload.bat ..\samples\DataLoad\Marketing\wc-dataload.xml -DLoadOrder="MarketingCampaign, MarketingActivity, MarketingElement, MarketingElementNVP"
- dataload.bat ..\samples\DataLoad\Marketing\wc-dataload.xml -DLoadOrder="MarketingCampaign, MarketingActivity, MarketingElement, MarketingElementNVP"
-
Verify that the marketing data is loaded by reviewing the data load summary report.
For more information about the location and contents of this summary report, see Verify that the Data Load utility loaded the data successfully.
- You can also verify that the marketing data is loaded by comparing the contents of your input files with the data within your target WebSphere Commerce database. Ensure that the data within the sample input files exists within the appropriate database tables.
- In Management Center, verify that you can view the newly loaded marketing objects in the Marketing tool.