-replace parameter

The -replace parameter replaces the analysis realm configuration on the server with the new configuration from the import file. If the analysis realm does not exist a new analysis realm is created.

If the import file contains an analysis realm without tables and criteria, the analysis realm is considered empty and will be deleted from the configuration.

If the analysis realm already exists and contains saved data, the process is canceled without changing the existing configuration, and an error message is displayed. Only data tables are checked for existing data. This means that process data is allowed to exist in Cross analytics analysis realms.

If the analysis realm already contains data, you need to delete the data tables by means of the runtableimport program before you replace the analysis realm configuration. After successful import the new configuration is activated on the analysis server. You need to reimport that data.

The import file with the following content deletes the analysis realm with the keyword Employee_Positions.

<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE realm SYSTEM "analysisrealm.dtd">

<realm keyword="Employee_Position" />