The XPSImport command failed with the error " SetProp "UseSecureCookies=yes". Wrong Key-Value format. Expected <key>=<flags>=<value> ".
search cancel

The XPSImport command failed with the error " SetProp "UseSecureCookies=yes". Wrong Key-Value format. Expected <key>=<flags>=<value> ".

book

Article ID: 276110

calendar_today

Updated On:

Products

SITEMINDER

Issue/Introduction

The XPSImport command failed with the following error " SetProp "UseSecureCookies=yes". Wrong Key-Value format. Expected <key>=<flags>=<value> ".

  # XPSImport pstore.xml -c
  Initializing XPS, please wait...
  Log Time Phase/Section                #Objects       %age        Elapsed
  -------- ------------------------ --------------- -----------  -----------------
  14:03:05 Initializing
  14:03:05 Reading                                               00:00:00
  14:03:05 Reading                                               00:00:00  00:00:00
  14:03:05 Analyzing                      0/4                    00:00:00
  (ERROR) : [sm-xadobj-00061] CA.SM::AgentConfig@xx-xxxxxx-xxxxxx-xx-xxxx-xxxxxxxxxx: SetProp "UseSecureCookies=yes". Wrong Key-Value format. Expected <key>=<flags>=<value>
  (ERROR) : [sm-xpsxps-02300] Could not set the string value "UseSecureCookies=yes" for the attribute named "CA.SM::AgentConfig.Attributes". (Line:12)
  (ERROR) : [sm-xpsxps-02260] Could not set attributes of the object with XID "CA.SM::AgentConfig@21-000806f8-51a1-52-8446-e554sv5s555s". (Line:12)
  (ERROR) : [sm-xpsxps-02952] Previous Errors prevent XPSImport from continuing.
  (FATAL) : [sm-xpsxps-01770] An error was encountered during import of policy data.
  (FATAL) : [sm-xpsxps-05810] Import failed.

 

Environment

Release: 12.8.x and 12.9 (Applicable to all the supported releases).
Environment: Siteminder Policy Server (SMPLC)

Cause

When modifying data from the ACO parameters, keep the same format.

For instance, when modifying the ACO parameter UseSecureCookies, modify it like:

  UseSecureCookies=0=no

to

  UseSecureCookies=0=yes

The following format is not expected as the flag part has been removed:

  UseSecureCookies=yes

instead of 

  UseSecureCookies=0=yes

 

Resolution

 

  • Modify the pstore.xml (Policy Store Export output file) to have UseSecureCookies=0=yes;

  • Other ACO properties being modified, make sure that each of them has the format =number=;

  • Once the pstore.xml corrected, run command:

    # XPSImport pstore.xml -c to import the data to replace the previous ones.

    - Document for reference:

    XPSImport