Using Business Manager, import existing content slot configurations to use with a new instance, and export them for transfer between instances. The slots themselves aren’t imported or exported, but page templates define them (in UX Studio). Slot configurations only reference those slots (using the slot ID). Within Business Manager, the elements in the slot.xsd control the visibility of a slot.
A slot configuration can belong to zero or one site. A slot configuration that doesn't belong to a site is like a reusable part for the site to use. You can assign a slot configuration to no campaigns or promotions or to one campaign or promotion. The schedule, rank, and qualifier elements are part of the assignments.
| Elements or attributes | Impact |
|---|---|
| <slot-configuration> | When importing a <slot-configuration> element in MERGE mode, the system checks to see if there’s an existing slot configuration with the same ID in the current site domain. If so, the import process updates the existing one; if not, the import process creates one. |
| <rank>, <schedule> or <customer-groups> | If the import file includes any of the deprecated elements <rank>, <schedule>, or <customer-groups>, the system can only update them if there’s an explicit SlotConfigurationAssignment between the slot configuration and the site. If one exists, the import process updates those attributes of the assignment;. If none exists, the import logic logs a warning. |
| <slot-configuration-assignment> | When importing a <slot-configuration-assignment> element in MERGE mode, the system checks to see if there’s an existing assignment. The system checks between the specified slot configuration (identified by a compound key consisting of slot-id, context, context-id, and configuration-id) and the current site (derived from the import/export context, not specified in the file). If an assignment exists, it's updated; otherwise, the system creates one. |
| <slot-configuration-campaign-assignment> | When importing a <slot-configuration-campaign-assignment> element in MERGE mode, the system checks to see if there’s an existing assignment between the specified slot configuration and the campaign (specified by campaign-id). If an assignment exists, it's updated; otherwise one is created. If you perform the import in a different import mode, the usual modified semantics apply. |
| <mode> | There’s a new mode attribute in the existing <slot-configuration> element. This mode attribute is used for deleting individual objects without doing a full DELETE mode import. The <slot-configuration> element offers special wildcard behavior for deletion. You can omit the context, context-id, and configuration-id in delete mode. Use this technique to delete multiple slot configurations simultaneously. |
| <slot-configuration-assignment> and <slot-configuration-campaign-assignment> | The new elements <slot-configuration-assignment> and <slot-configuration-campaign-assignment> support a delete mode, but not a wildcard deletion, such as described previously. With this method, Only delete one assignment at a time. As a result, the attributes context, context-id, and configuration-id are required for these elements. |
Business Manager Import Location
Pipelets
- ImportSlots
- ExportSlots
Import Content Slot Configurations
Import B2C Commerce slot configurations.
-
Click App Launcher
, and then select .
- In the Content Slot section, click Import.
- Select an import file from the list and click Next>>.
-
B2C Commerce validates the schema file.
- If the schema file validation is unsuccessful, examine the file for errors and start over.
- If the validation is successful, click Next>>.
-
Select an import mode:
Merge Updates existing database objects and creates objects based on XML import file. Update Updates existing database objects only (doesn't create ones). Replace Deletes and then recreates existing database objects; creates objects based on XML import file. Delete Deletes slot configurations referenced in the file; parent slots aren’t deleted. -
Click Import.
The Import & Export page reappears, where you can monitor the status of the import job.
Content Slot Import Modes in B2C Commerce
Learn how the DELETE, UPDATE, MERGE, and REPLACE import modes change content slot configurations when you import a content slot file, and how to diagnose unexpected import results.
- Export: enter a valid file name (no special characters). If the file name doesn't end in ".xml", the system appends the extension.
- Import: select an import file from the list. The system
performs a validation. After validation, the user can select an import mode: DELETE,
UPDATE, MERGE and REPLACE.
The following table describes the import behavior:
| Mode | Element/situation | Behavior |
|---|---|---|
| DELETE | Slot configurations | If referenced in the file, the system deletes it from the database. |
| If you specify only a slot-id | All slot configurations for the slot with that id are deleted. | |
| If you specify a slot-id and context | All slot configurations for the slot in that context are deleted. | |
| If you specify slot-id, context, and context-id | The system deletes all slot configurations for the slot in that context, with that context-id. | |
| If a slot-id, context, context-id, and configuration-id are all specified | The system deletes the one slot configuration for the slot in that context, with that name, if it exists. | |
| If a context, context-id, or configuration-id specified, but not the slot-id | The system ignores the missing element with a warning. | |
| UPDATE | Standard UPDATE mode | The system updates existing slot configurations referenced in the file. |
| If the slot-id, context, context-id, and configuration-id match a slot configuration | Only the specified elements result in updated properties of that configuration. | |
| If the slot-id, context, context-id and configuration-id don't match a slot configuration | The system ignores the element with a warning. | |
| If you specify multiple slot configurations as the default. | The last slot configuration is set to the default and a warning appears in the log. | |
| MERGE | Standard MERGE mode |
The system updates existing slot configurations referenced in the file and inserts any new slot configurations in the file. The defaults for optional MERGE properties are:
|
| For the update case |
The same behavior as for the UPDATE mode. Required properties are: slot-id, context, context-id, configuration-id and the template. |
|
| For the insert case | Provide all required properties, or the system ignores the slot configuration with a warning. | |
| If you specify multiple default configurations | The last slot configuration is set to the default and a warning appears in the log. | |
| REPLACE | Standard REPLACE mode |
The same as for MERGE mode, except that the update of existing slot configurations is as if they were first imported in DELETE mode. This means that the system deletes the existing slot configuration and inserts a new one with the provided data. The system reuses the location where the slot configuration was stored. |
| If optional element properties elements are not specified. | The defaults take effect, even if the default values are different than the values in the slot configuration being replaced. | |
| If you specify multiple default configurations | The last slot configuration is set to the default and a warning appears in the log. |
Troubleshooting Slot Import
If an import produces unexpected results, check the file against these conditions:
- Did you run an import on slot configurations with references to slots that aren't in the template? You can get a data warning, but the slot configurations are still imported as place holders.
- Did you have slot configurations with references to slots in the template, but the slots are later removed from the templates? Those slot configurations don't appear in Business Manager.
Export Content Slot Configurations
Export B2C Commerce content slot configurations.
-
Click App Launcher
, and then select .
- In the Content slot section, click Export.
- Enter a name for the export file. If you don't enter the .xml suffix, it’s appended automatically.
-
Click Finish to submit the job.
The Online Marketing > Import & Export page reappears. The job's status appears in the Status section of the page.
-
To view the job's log file, click the Process link in the
Statussection. -
On the page that opens, click the Download Export File link
in the
Export Filesection to download the export file to your local machine.