"No (more) records found" returnCode="9" error when trying to update a change record in S M9.41

Hello,

I'm trying to update a change record through SoapUI but I get the "No (more) records found" returnCode="9" error.

Here is the Soap Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://schemas.hp.com/SM/7" xmlns:com="http://schemas.hp.com/SM/7/Common" xmlns:xm="http://www.w3.org/2005/05/xmlmime">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:SaveENIautomationChangeRCRequest attachmentInfo="?" attachmentData="?" ignoreEmptyElements="true" updateconstraint="-1">
         <ns:model query="?">
            <ns:keys query="?" updatecounter="?">
               <!--Optional:-->
               <ns:ChangeNumber type="String" mandatory="?" readonly="?">C000000118886</ns:ChangeNumber>
            </ns:keys>
            <ns:instance query="?" uniquequery="?" recordid="?" updatecounter="?">
               <ns:header type="Structure">
                  <!--Optional:-->
                  <ns:ChangeNumber type="String" mandatory="?" readonly="?"></ns:ChangeNumber>
                  <!--Optional:-->
                  <ns:Category type="String" mandatory="?" readonly="?"></ns:Category>
                  <!--Optional:-->
                  <ns:Status type="String" mandatory="?" readonly="?"></ns:Status>
                  <!--Optional:-->
                  <ns:ApprovalStatus type="String" mandatory="?" readonly="?"></ns:ApprovalStatus>
                  <!--Optional:-->
                  <ns:RequestedBy type="String" mandatory="?" readonly="?"></ns:RequestedBy>
                  <!--Optional:-->
                  <ns:PlannedStartDate type="DateTime" mandatory="?" readonly="?">2018-12-06T12:30:00 00:00</ns:PlannedStartDate>
                  <!--Optional:-->
                  <ns:PlannedEndDate type="DateTime" mandatory="?" readonly="?">2018-12-11T18:30:00 00:00</ns:PlannedEndDate>
                  <!--Optional:-->
                  <ns:CurrentPhase type="String" mandatory="?" readonly="?"></ns:CurrentPhase>
                  <!--Optional:-->
                  <ns:RiskAssessment type="String" mandatory="?" readonly="?"></ns:RiskAssessment>
                  <!--Optional:-->
                  <ns:Priority type="String" mandatory="?" readonly="?"></ns:Priority>
                  <!--Optional:-->
                  <ns:OpenedBy type="String" mandatory="?" readonly="?"></ns:OpenedBy>
                  <!--Optional:-->
                  <ns:Title type="String" mandatory="?" readonly="?"></ns:Title>
                  <!--Optional:-->
                  <ns:Subcategory type="String" mandatory="?" readonly="?"></ns:Subcategory>
                  <!--Optional:-->
                  <ns:Technology type="String" mandatory="?" readonly="?"></ns:Technology>
                  <!--Optional:-->
                  <ns:RequestOwner type="String" mandatory="?" readonly="?"></ns:RequestOwner>
                  <!--Optional:-->
                  <ns:RequestOwnerGroup type="String" mandatory="?" readonly="?"></ns:RequestOwnerGroup>
               </ns:header>
               <ns:description.structure type="Structure">
                  <!--Optional:-->
                  <ns:Description type="Array">
                     <!--Zero or more repetitions:-->
                     <ns:Description type="String" mandatory="?" readonly="?"></ns:Description>
                  </ns:Description>
               </ns:description.structure>
               <ns:middle type="Structure">
                  <!--Optional:-->
                  <ns:Assets type="Array">
                     <!--Zero or more repetitions:-->
                     <ns:Assets type="String" mandatory="?" readonly="?"></ns:Assets>
                  </ns:Assets>
                  <!--Optional:-->
                  <ns:AffectedService type="Array">
                     <!--Zero or more repetitions:-->
                     <ns:AffectedService type="String" mandatory="?" readonly="?"></ns:AffectedService>
                  </ns:AffectedService>
               </ns:middle>
               <ns:close type="Structure">
                  <!--Optional:-->
                  <ns:CompletionCode type="Decimal" mandatory="?" readonly="?"></ns:CompletionCode>
                  <!--Optional:-->
                  <ns:ClosingComments type="Array">
                     <!--Zero or more repetitions:-->
                     <ns:ClosingComments type="String" mandatory="?" readonly="?"></ns:ClosingComments>
                  </ns:ClosingComments>
               </ns:close>
               <!--Optional:-->
               <ns:Urgency type="String" mandatory="?" readonly="?"></ns:Urgency>
               <!--Optional:-->
               <ns:Service type="String" mandatory="?" readonly="?"></ns:Service>
               <!--Optional:-->
               <ns:RequestedDate type="DateTime" mandatory="?" readonly="?"></ns:RequestedDate>
               <!--Optional:-->
               <ns:Detail type="String" mandatory="?" readonly="?"></ns:Detail>
               <!--Optional:-->
               <ns:ReleaseOwner type="String" mandatory="?" readonly="?">dba_oracle</ns:ReleaseOwner>
               <!--Optional:-->
               <ns:ReleaseOwnerGroup type="String" mandatory="?" readonly="?"></ns:ReleaseOwnerGroup>
               <!--Optional:-->
               <ns:SRCode type="String" mandatory="?" readonly="?"></ns:SRCode>
               <!--Optional:-->
               <ns:Impact type="String" mandatory="?" readonly="?"></ns:Impact>
               <!--Optional:-->
               <ns:UcmdbIdAssets type="Array">
                  <!--Zero or more repetitions:-->
                  <ns:UcmdbIdAssets type="String" mandatory="?" readonly="?"></ns:UcmdbIdAssets>
               </ns:UcmdbIdAssets>
               <!--Optional:-->
               <ns:UcmdbIdAffectedServices type="Array">
                  <!--Zero or more repetitions:-->
                  <ns:UcmdbIdAffectedServices type="String" mandatory="?" readonly="?"></ns:UcmdbIdAffectedServices>
               </ns:UcmdbIdAffectedServices>
               <!--Optional:-->
               <ns:attachments>
                  <!--Zero or more repetitions:-->
                  <com:attachment xm:contentType="application/?" href="?" contentId="?" action="?" name="?" type="?" len="?" charset="?" upload.by="?" upload.date="?" attachmentType="?"></com:attachment>
               </ns:attachments>
            </ns:instance>
            <!--Optional:-->
            <ns:messages>
               <!--Zero or more repetitions:-->
               <com:message type="String" mandatory="?" readonly="?" severity="?" module="?"></com:message>
            </ns:messages>
         </ns:model>
      </ns:SaveENIautomationChangeRCRequest>
   </soapenv:Body>
</soapenv:Envelope>

and here is the result:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Body>
      <SaveENIautomationChangeRCResponse message="No (more) records found" returnCode="9" schemaRevisionDate="2018-12-04" schemaRevisionLevel="0" status="FAILURE" xsi:schemaLocation="http://schemas.hp.com/SM/7 http://02log00134.hosts.eni.intranet:13089/SM/7/ENIautomationChangeRC.xsd" xmlns="http://schemas.hp.com/SM/7" xmlns:cmn="http://schemas.hp.com/SM/7/Common" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <model>
            <keys>
               <ChangeNumber type="String">C000000118886</ChangeNumber>
            </keys>
            <instance recordid="C000000118886" uniquequery="header,number=&quot;C000000118886&quot;">
               <header type="Structure">
                  <ChangeNumber type="String">C000000118886</ChangeNumber>
                  <PlannedStartDate type="DateTime">2018-12-06T12:30:00 00:00</PlannedStartDate>
                  <PlannedEndDate type="DateTime">2018-12-11T18:30:00 00:00</PlannedEndDate>
               </header>
               <description.structure type="Structure"/>
               <middle type="Structure"/>
               <close type="Structure"/>
               <ReleaseOwner type="String">dba_oracle</ReleaseOwner>
            </instance>
         </model>
      </SaveENIautomationChangeRCResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Can you help me?

Thanks

Massimo

  • Hi ; 

    When you sen request on soap  must delete  all "?" character. 

    Try This : 

    Best Regards

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://schemas.hp.com/SM/7" xmlns:com="http://schemas.hp.com/SM/7/Common" xmlns:xm="http://www.w3.org/2005/05/xmlmime">
    <soapenv:Header/>
    <soapenv:Body>
    <ns:SaveENIautomationChangeRCRequest attachmentInfo="" attachmentData="" ignoreEmptyElements="true" updateconstraint="-1">
    <ns:model query="">
    <ns:keys query="" updatecounter="">
    <!--Optional:-->
    <ns:ChangeNumber type="String" mandatory="" readonly="">C000000118886</ns:ChangeNumber>
    </ns:keys>
    <ns:instance query="" uniquequery="" recordid="" updatecounter="">
    <ns:header type="Structure">
    <!--Optional:-->
    <ns:ChangeNumber type="String" mandatory="" readonly=""></ns:ChangeNumber>
    <!--Optional:-->
    <ns:Category type="String" mandatory="" readonly=""></ns:Category>
    <!--Optional:-->
    <ns:Status type="String" mandatory="" readonly=""></ns:Status>
    <!--Optional:-->
    <ns:ApprovalStatus type="String" mandatory="" readonly=""></ns:ApprovalStatus>
    <!--Optional:-->
    <ns:RequestedBy type="String" mandatory="" readonly=""></ns:RequestedBy>
    <!--Optional:-->
    <ns:PlannedStartDate type="DateTime" mandatory="" readonly="">2018-12-06T12:30:00 00:00</ns:PlannedStartDate>
    <!--Optional:-->
    <ns:PlannedEndDate type="DateTime" mandatory="" readonly="">2018-12-11T18:30:00 00:00</ns:PlannedEndDate>
    <!--Optional:-->
    <ns:CurrentPhase type="String" mandatory="" readonly=""></ns:CurrentPhase>
    <!--Optional:-->
    <ns:RiskAssessment type="String" mandatory="" readonly=""></ns:RiskAssessment>
    <!--Optional:-->
    <ns:Priority type="String" mandatory="" readonly=""></ns:Priority>
    <!--Optional:-->
    <ns:OpenedBy type="String" mandatory="" readonly=""></ns:OpenedBy>
    <!--Optional:-->
    <ns:Title type="String" mandatory="" readonly=""></ns:Title>
    <!--Optional:-->
    <ns:Subcategory type="String" mandatory="" readonly=""></ns:Subcategory>
    <!--Optional:-->
    <ns:Technology type="String" mandatory="" readonly=""></ns:Technology>
    <!--Optional:-->
    <ns:RequestOwner type="String" mandatory="" readonly=""></ns:RequestOwner>
    <!--Optional:-->
    <ns:RequestOwnerGroup type="String" mandatory="" readonly=""></ns:RequestOwnerGroup>
    </ns:header>
    <ns:description.structure type="Structure">
    <!--Optional:-->
    <ns:Description type="Array">
    <!--Zero or more repetitions:-->
    <ns:Description type="String" mandatory="" readonly=""></ns:Description>
    </ns:Description>
    </ns:description.structure>
    <ns:middle type="Structure">
    <!--Optional:-->
    <ns:Assets type="Array">
    <!--Zero or more repetitions:-->
    <ns:Assets type="String" mandatory="" readonly=""></ns:Assets>
    </ns:Assets>
    <!--Optional:-->
    <ns:AffectedService type="Array">
    <!--Zero or more repetitions:-->
    <ns:AffectedService type="String" mandatory="" readonly=""></ns:AffectedService>
    </ns:AffectedService>
    </ns:middle>
    <ns:close type="Structure">
    <!--Optional:-->
    <ns:CompletionCode type="Decimal" mandatory="" readonly=""></ns:CompletionCode>
    <!--Optional:-->
    <ns:ClosingComments type="Array">
    <!--Zero or more repetitions:-->
    <ns:ClosingComments type="String" mandatory="" readonly=""></ns:ClosingComments>
    </ns:ClosingComments>
    </ns:close>
    <!--Optional:-->
    <ns:Urgency type="String" mandatory="" readonly=""></ns:Urgency>
    <!--Optional:-->
    <ns:Service type="String" mandatory="" readonly=""></ns:Service>
    <!--Optional:-->
    <ns:RequestedDate type="DateTime" mandatory="" readonly=""></ns:RequestedDate>
    <!--Optional:-->
    <ns:Detail type="String" mandatory="" readonly=""></ns:Detail>
    <!--Optional:-->
    <ns:ReleaseOwner type="String" mandatory="" readonly="">dba_oracle</ns:ReleaseOwner>
    <!--Optional:-->
    <ns:ReleaseOwnerGroup type="String" mandatory="" readonly=""></ns:ReleaseOwnerGroup>
    <!--Optional:-->
    <ns:SRCode type="String" mandatory="" readonly=""></ns:SRCode>
    <!--Optional:-->
    <ns:Impact type="String" mandatory="" readonly=""></ns:Impact>
    <!--Optional:-->
    <ns:UcmdbIdAssets type="Array">
    <!--Zero or more repetitions:-->
    <ns:UcmdbIdAssets type="String" mandatory="" readonly=""></ns:UcmdbIdAssets>
    </ns:UcmdbIdAssets>
    <!--Optional:-->
    <ns:UcmdbIdAffectedServices type="Array">
    <!--Zero or more repetitions:-->
    <ns:UcmdbIdAffectedServices type="String" mandatory="" readonly=""></ns:UcmdbIdAffectedServices>
    </ns:UcmdbIdAffectedServices>
    <!--Optional:-->
    <ns:attachments>
    <!--Zero or more repetitions:-->
    <com:attachment xm:contentType="application/" href="" contentId="" action="" name="" type="" len="" charset="" upload.by="" upload.date="" attachmentType=""></com:attachment>
    </ns:attachments>
    </ns:instance>
    <!--Optional:-->
    <ns:messages>
    <!--Zero or more repetitions:-->
    <com:message type="String" mandatory="" readonly="" severity="" module=""></com:message>
    </ns:messages>
    </ns:model>
    </ns:SaveENIautomationChangeRCRequest>
    </soapenv:Body>
    </soapenv:Envelope>

  • Hi,

    I tried but unfortunately I get the same result..

  • Could you take attachment on Web Service Extaccess . I think you dont have a add permision yet

  • Yes, I have add, save and close permission. Moreover, the creation works fine.