IT Process Automation

Expand all | Collapse all

Issues in creating a request in SDM using webservice from PAM

  • 1.  Issues in creating a request in SDM using webservice from PAM

    Posted Feb 12, 2018 11:23 PM

    Hello Team,

     

    I am trying to create a request in SDM using webservice from PAM but getting below error.

    ******************************************************************

    <soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <faultcode>soapenv:Client</faultcode>
    <faultstring>Error - invalid parameter</faultstring>
    <faultactor/>
    <detail>
    <ErrorMessage>Error - invalid parameter</ErrorMessage>
    <ErrorCode>1000</ErrorCode>
    </detail>
    </soapenv:Fault>

    ******************************************************************

    Please find the below Inline test used to create a request.

    ******************************************************************

    <impl:createRequest xmlns:impl="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
    <sid>sid__</sid>
    <creatorHandle>creatorHandle__</creatorHandle>
    <attrVals>
    <string>category</string>
    <string>pcat:421313</string>
    <string>type</string>
    <string>R</string>
    <string>customer</string>
    <string>customer__</string>
    <string>priority</string>
    <string>priority__</string>
    <string>status</string>
    <string>status__</string>
    <string>summary</string>
    <string>summary__</string>
    <string>description</string>
    <string>description__</string>
    <string>log_agent</string>
    <string>log_agent__</string>
    </attrVals>
    <attributes></attributes>
    <newRequestHandle></newRequestHandle>
    <newRequestNumber></newRequestNumber>
    </impl:createRequest>

    ******************************************************************

    Please suggest me to proceed further. Please find the attached screenshot of the Flow.

     

    Create Request Flow

     

    Screenshot of Inline text.

     

    Inline text

     

     

    Regards,
    Naveen



  • 2.  Re: Issues in creating a request in SDM using webservice from PAM

    Posted Feb 12, 2018 11:57 PM

    What are the values you are using to replace customer__, priority__, status__, and log_agent__ ?



  • 3.  Re: Issues in creating a request in SDM using webservice from PAM

    Posted Feb 13, 2018 12:07 AM

    Hi Lindsay,

     

    i am providing the values at the " Dynamic Parameters " in " Parameter List " . Please let me know if i have to provide them at the Inline text.

     

    Regards,

    Naveen



  • 4.  Re: Issues in creating a request in SDM using webservice from PAM

    Posted Feb 13, 2018 12:25 AM

    You can use the Dynamic Parameters. I wanted to know what the values were? Are they persistent_id values?



  • 5.  Re: Issues in creating a request in SDM using webservice from PAM

    Posted Feb 13, 2018 12:29 AM

    Yes, The values were there is Dynamic Parameters. They were  persistent_id values.

     

    Regards,

    Naveen



  • 6.  Re: Issues in creating a request in SDM using webservice from PAM

    Posted Feb 13, 2018 03:32 AM

    Can you please send details of the exact values that you passed, and show the contents of the macro tab where you specify how each macro is to be replaced in the inline text?  I'd also suggest it may be worth putting some labels into the 'newRequestNumber' and 'newRequestHandle' tags.  Finally, have you tried hard-coding values into the inline text?  Does that change the error message that you receive?

    Regards,

    James



  • 7.  Re: Issues in creating a request in SDM using webservice from PAM

    Posted Feb 13, 2018 03:47 AM

    Hi James,

     

    i have done few modifications to Inline text, but i am still getting the same error. Please find the below screenshot of Inline Text.

     

    Inline text Screenshot.

     

     

    Error Log.

     

     

    Regards,

    Naveen



  • 8.  Re: Issues in creating a request in SDM using webservice from PAM

    Posted Feb 13, 2018 06:33 AM

    Location and Department ar not valid fields on a ticket - and also format (?) -  remove them and try again.



  • 9.  Re: Issues in creating a request in SDM using webservice from PAM

    Posted Feb 13, 2018 08:47 AM

    remove the newRequestHandle and newRequestNumber if you don't provide a valid one

    add   <propertyValues></propertyValues>    <template></template>

    but leave them empty if you don't have any.

    Make also sure that you provide any required fields

     

    e.g. below (replace with your own value)

      <impl:createRequest>
    <sid>sid__</sid>
    <creatorHandle>creatorHandle__</creatorHandle>
    <attrVals>
    <string>customer</string>
     <string>customer__</string>
     <string>type</string>
     <string>R</string>
     <string>priority</string>
     <string>3</string>
     <string>category</string>
     <string>pcat:400286</string>
     <string>group</string>
     <string>group__</string>
     <string>status</string>
     <string>OP</string>
    <string>description</string>
     <string>test....</string>
      </attrVals>
      <propertyValues></propertyValues>
      <template></template>
      <attributes>
     <string>ref_num</string>
      </attributes>
    </impl:createRequest>

     

    Hope this help

    /J



  • 10.  Re: Issues in creating a request in SDM using webservice from PAM

    Posted Mar 15, 2018 06:49 AM

    Thanks for your suggestions, Able to create a request with mandatory parameters.