AHD03303 error when trying to run a CI related SOAP call
search cancel

AHD03303 error when trying to run a CI related SOAP call

book

Article ID: 275047

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager CA Service Desk Manager

Issue/Introduction

Trying to create a new parent/child relationship for two Configuration Items through SOAP services, but it's not working.

Using the "createAssetParentChildRelationship" method:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:createAssetParentChildRelationship>
       <sid>XXXXXX</sid>
         <parentHandle>0x#####################</parentHandle>
         <childHandle>0x#####################</childHandle>
      </ser:createAssetParentChildRelationship>
   </soapenv:Body>
</soapenv:Envelope>

##################### represents the UUID of the given assets/CI's

Getting this error in response:  AHD03303:Error retrieving Function Access due to an invalid handle or factory

Environment

Release : 17.1 and higher

CA Service Desk Manager

Cause

The correct syntax for the asset handle is "nr:#####################".  This is the parameter type that is being used for the parentHandle and childHandle arguments.

Resolution

The correct SOAP call should be:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:createAssetParentChildRelationship>
       <sid>XXXXXX</sid>
         <parentHandle>nr:#####################</parentHandle>
         <childHandle>nr:#####################</childHandle>
      </ser:createAssetParentChildRelationship>
   </soapenv:Body>
</soapenv:Envelope>

##################### represents the UUID of the given assets/CI's