CA Service Management

Expand all | Collapse all

Create Change Webservice: ErrorCode 1001 could not get attribute cache

sharath mateti05-31-2016 02:35 AM

  • 1.  Create Change Webservice: ErrorCode 1001 could not get attribute cache

    Posted 05-30-2016 10:48 AM

    Hi,

     

    Im using the SOAP UI to create the change order and even after creating the change order using the createchangeorder webservice I get the below response.

     

    Could you please let me know what is the issue.

     

     

     

     

     

     

     

    <ErrorMessage>Error
    - could not get attribute cache UDS Attribute</ErrorMessage>

              
    <ErrorCode>1001</ErrorCode>



  • 2.  Re: create change Webservice

    Posted 05-30-2016 12:41 PM

    Hi,

    could you share your Request code?



  • 3.  Re: create change Webservice

    Posted 05-31-2016 02:35 AM

           
    <sid>299254424</sid>

           
    <creatorHandle>cnt:4290BAFC12A95141A974E8DF5292865F</creatorHandle>

           
    <attrVals>

              
    <!--1 or more repetitions:-->

              
    <string>requestor</string>

              
    <string>cnt:4290BAFC12A95141A974E8DF5292865F</string>

              
    <string>affected_contact</string>

              
    <string>cnt:4290BAFC12A95141A974E8DF5292865F</string>

              
    <string>description</string>

              
    <string>sharath</string>

              
    <string>category</string>

              
    <string>EMRG</string>

              
    <string>group</string>

              
    <string>cnt:22C9FE761564974DA0A8A3E802ED7619</string>

     

           
    </attrVals>



  • 4.  Re: create change Webservice

    Posted 05-31-2016 09:35 AM

    Your Category value needs to be the handle(persid) of the Change Category instead of the symbol.



  • 5.  Re: create change Webservice

    Posted 05-31-2016 09:38 AM

    The category is not actually the symbol but the Code of my category. And either I give code or perid , both the ways the ticket is getting created with that error message



  • 6.  Re: create change Webservice

    Posted 05-31-2016 10:02 AM

    Hi, Can you show us your fetch attribute list, as per the unicenter service desk web service user guide this error code indicates that the is an error with your fecth attribute list, hence the ticket gets created and then you get that error code, also post your error message.

     

    <ErrorCode>1001</ErrorCode>

    <ErrorMessage> Error on fetch with attribute list: bha bha bha</ErrorMessage>



  • 7.  Re: create change Webservice

    Posted 05-31-2016 10:39 AM

    Hi,

     

    I have placed my complete call..

     

     

    thanks,

    sharath



  • 8.  Re: create change Webservice

    Posted 05-31-2016 10:39 AM

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">

       <soapenv:Header/>

       <soapenv:Body>

          <ser:createChangeOrder>

           
    <sid>299254424</sid>

           
    <creatorHandle>cnt:4290BAFC12A95141A974E8DF5292865F</creatorHandle>

           
    <attrVals>

              
    <!--1 or more repetitions:-->

              
    <string>requestor</string>

              
    <string>cnt:4290BAFC12A95141A974E8DF5292865F</string>

              
    <string>affected_contact</string>

              
    <string>cnt:4290BAFC12A95141A974E8DF5292865F</string>

              
    <string>description</string>

              
    <string>sharath</string>

              
    <string>category</string>

              
    <string>EMRG</string>

              
    <string>group</string>

              
    <string>cnt:22C9FE761564974DA0A8A3E802ED7619</string>

     

           
    </attrVals>

           
    <propertyValues>

              
    <!--1 or more repetitions:-->

              
    <string></string>

           
    </propertyValues>

           
    <template></template>

           
    <attributes>

              
    <!--1 or more repetitions:-->

              
    <string></string>

           
    </attributes>

           
    <newChangeHandle></newChangeHandle>

           
    <newChangeNumber></newChangeNumber>

        
    </ser:createChangeOrder>

       </soapenv:Body>

    </soapenv:Envelope>



  • 9.  Re: create change Webservice

    Posted 05-31-2016 12:25 PM

    Hi, please try removing the empty string attribute, so your attributes should look like this see code below, let me know if this helps, try running your SOAP again, it work now.

    <attributes>

              
    <!--1 or more repetitions:-->

                     
    </attributes>



  • 10.  Re: create change Webservice

    Posted 05-31-2016 11:13 AM

    The value for your Category needs to be in the format of chgcat:?????, which is the persid of the category, instead of "EMRG".



  • 11.  Re: create change Webservice

    Posted 05-31-2016 01:25 PM

    Hi,

     

    As said, their is no difference even its chgcat:persid. Change order will get created but we have the same error response



  • 12.  Re: Create Change Webservice: ErrorCode 1001 could not get attribute cache

    Broadcom Partner
    Posted 06-08-2016 05:23 PM

    Hi Sharath - Did Andy's response help answer your question? If so please mark it as Correct Answer. Thanks!



  • 13.  Re: create change Webservice

    Posted 05-31-2016 01:53 PM

    Try using the following for your Attributes. I have seen issues when you do not specify attributes to return.

     

    <attributes>

    <string>id</string>    
    </attributes>



  • 14.  Re: Create change Webservice: ErrorCode 1001 could not get attribute cache

    Posted 06-02-2016 03:30 AM

    Hi sharath,

     

    FYI, I've updated the thread title and the tags for clarity.

     

    Thanks, Kyle_R.

    Mod.