When running the XPSImport command, the import fails and the command returns an error:
# XPSImport Fullexport_07Dec.xml
(FATAL) : [sm-xpsxps-05810] Import failed.
When adding the option to the command to overwrite the existing objects, importing the data executes successfully.
Policy Server 12.8SP3 on RedHat 6;
Import of a complete Policy Store data set can't be done without overwriting the existing data.
The only way to import the different data is to do a selective export of the data set.
To avoid overwriting existing objects, list all those objects which exist in the 2 Stores, and then export only the ones that need to be added to the target Policy Store. According to the documentation, the combination of the XPSExplorer and XPSExport command will allow to do it (1)(2).
Unfortunately, there's no automatic way to do this and those operations should be led manually.
You can export a subset of policy data by specifying the
identifier of a root object. Specify this identifier in the
command line or in a file (using the -xf parameter). Only those
objects that do not have a parent class can be exported. For
example, to export a realm object, you specify the identifier
(XID) of the parent domain for the realm.
You can also create and edit a custom export file using the
"shopping cart", or XCart, capability in XPSExplorer (XPSExplorer
-xf). You can set the import mode (ADD, OVERLAY, REPLACE, or
DEFAULT) on a per object basis in the XCart file. You can then
pass the XCart file to XSPExport using the -xf parameter.
XPSExplorer is an interactive command-line utility that allows an
administrator or application developer to view the data in a
policy store. XPSExplorer has two uses:
To determine the identifiers of objects for a granular export or
import by exploring a list of domains or realms