createChangeRequest Delete Account web serivce call not working in RSA Identity Management and Governance 6.9.1
2 years ago
Originally Published: 2016-06-20
Article Number
000049563
Applies To
RSA Product Set: Identity Management and Governance
RSA Product/Service Type: Enterprise Software
RSA Version/Condition: 6.9.1
Issue
The createChangeRequest Delete Account REST web serivce call not working in version 6.9.1. Getting the error:
 
HTTP Status 412 - The change request could not be created. Account change could not be created. Not all required properties were found.

Example REST XML body payload as defined from 6.9.1 documentation:

<Changes>
    <AccountChange>
        <Operation>Delete</Operation>
        <User>value</User>       
        <BusinessSource>value</BusinessSource>  
    </AccountChange>
</Changes>

The following response was returned from the REST request:

<html>
    <head>
        <meta content="HTML Tidy for Java (vers. 26 Sep 2004), see www.w3.org" name="generator"/>
        <title>Aveksa - Error report</title>
        <style type="text/css">&lt;!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
    </head>
    <body>
       <h1><![CDATA[HTTP Status 412 - The change request could not be created. Account change could not be created. Not all required properties were found. <?xml version="1.0" encoding="UTF-8"?><AccountChange> <Operation>Delete</Operation> <User>value</User> <BusinessSource>value</BusinessSource> </AccountChange> Query String=cmd=createChangeRequest&token=ws3130ece75f8ff2916e%3A70be9ec5%3A15560514e98%3A11ff0.06277828710796296]]></h1>
       <hr noshade="noshade" size="1"/>
       <p>
          <b>type</b>
          Status report
      </p>
      <p>
          <b>message</b>
             <u><![CDATA[The change request could not be created. Account change could not be created. Not all required properties were found. <?xml version="1.0" encoding="UTF-8"?><AccountChange> <Operation>Delete</Operation> <User>value</User> <BusinessSource>value</BusinessSource> </AccountChange> Query String=cmd=createChangeRequest&token=ws3130ece75f8ff2916e%3A70be9ec5%3A15560514e98%3A11ff0.06277828710796296]]></u>
      </p>
      <p>
           <b>description</b>
           <u><![CDATA[A specified precondition has failed for this request (The change request could not be created. Account change could not be created. Not all required properties were found. <?xml version="1.0" encoding="UTF-8"?><AccountChange> <Operation>Delete</Operation> <User>value</User> <BusinessSource>value</BusinessSource> </AccountChange> Query String=cmd=createChangeRequest&token=ws3130ece75f8ff2916e%3A70be9ec5%3A15560514e98%3A11ff0.06277828710796296).]]></u>
      </p>
      <hr noshade="noshade" size="1"/>
      <h3>Aveksa</h3>   
    </body>
</html>
Cause
The documentation in Via Lifecycle & Governance 6.9.1 is incomplete for the createChangeRequest Delete Account web service. Documentation has been corrected in version 7.0+. There are two missing XML elements; Account and AccountCollector.
Resolution

The createChangeRequest Delete Account REST web service payload should have the following elements:

<Changes> 
    <AccountChange>       
        <Operation>Delete</Operation>        
        <User>value</User>       
        <BusinessSource>value</BusinessSource>        
        <Account>value</Account>       
        <AccountCollector>value</AccountCollector>   

    </AccountChange>
/Changes>