AnsweredAssumed Answered

problem using removeLrelRelationships

Question asked by Daniel Becker Bighelini Champion on Mar 24, 2015
Latest reply on Mar 24, 2015 by Daniel Becker Bighelini

I need to remove the relationship between configuration items (nr) and maintenance windows (window) through the web service provided by the Service Desk. This relationship occurs in the table "ci_window" through fields of type BREL.

Below illustrate what happens when you try to run the method "removeLrelRelationships" web service based on the table of maintenance windows:

call:

<ser:removeLrelRelationships>

         <sid>937280104</sid>

         <contextObject>window:400013</contextObject>

         <lrelName>ci</lrelName>

         <removeObjectHandles>

            <string>ci_window:400012</string>

         </removeObjectHandles>

</ser:removeLrelRelationships>

 

return:

      <soapenv:Fault>

         <faultcode>soapenv:Client</faultcode>

         <faultstring>Bad handle passed to update_handle for lrel 'ci' - it's of the wrong type!  Offending handle: ci_window:400012</faultstring>

         <faultactor/>

         <detail>

            <ErrorMessage>Bad handle passed to update_handle for lrel 'ci' - it's of the wrong type!  Offending handle: ci_window:400012</ErrorMessage>

            <ErrorCode>1000</ErrorCode>

         </detail>

      </soapenv:Fault>

 

And then the same call type based on the configuration items below

call:

      <ser:removeLrelRelationships>

         <sid>937280104</sid>

         <contextObject>nr:1B947EECD09DB148ABE8675FED5D006D</contextObject>

         <lrelName>window</lrelName>

         <removeObjectHandles>

            <string>window:400013</string>

         </removeObjectHandles>

      </ser:removeLrelRelationships>

return:

      <soapenv:Fault>

         <faultcode>soapenv:Client</faultcode>

         <faultstring>Internal err with getCODob: NOT FOUND</faultstring>

         <faultactor/>

         <detail>

            <ErrorMessage>Internal err with getCODob: NOT FOUND</ErrorMessage>

            <ErrorCode>102</ErrorCode>

         </detail>

      </soapenv:Fault>

:

Can anyone help?

Outcomes