Forum Discussion

dkinsley's avatar
dkinsley
Creator II
6 years ago

Lock document that is in the state of "In Change".

I need to correct a document file in a document that is in the state of "In Change". The new proposed rev is in the state of 'In Review". We are waiting for customer approval so in the meantime the In Change doc is the currently released version and there is a mistake in the file. I tried to lock that document using AML but it tells me it is not the most current version. i already know that but want to lock it anyway. How do i do it?

<AML>
<Item type="Document" action= "lock" id="68FDC33766674A2F9E1A34CBC77F3516">
</Item>
</AML>

 <faultstring>The version of the Item you are trying to lock is not current.  Please lock the current version.</faultstring>

7 Replies

  • Hi 

    In Change item is equivalent to released item. So, only admin & root has access to edit.

    You have to use below AML to update description. 

    <AML>
    <Item type="Document" action= "edit" id="68FDC33766674A2F9E1A34CBC77F3516">
    <name></name>
    </Item>
    </AML>

    Thanks

    Gopikrishnan R

    • dkinsley's avatar
      dkinsley
      Creator II

      Gopikrishnan,

      Thank you for your reply. I am the admin but the document does not allow me to lock it. I used the AML code you provided but it did not lock the document.

      <AML>
      <Item type="Document" action= "edit" id="68FDC33766674A2F9E1A34CBC77F3516">
      <name>"ACCEPTANCE TEST PROCEDURES"</name>
      </Item>
      </AML>

      2020-04-28 12:36:24 [Query] [Result] > 0 item(s) found in 16 ms

      <SOAP-ENV:Envelope
      1
      <SOAP-ENV:Envelope
      2
        xmlns:SOAP-ENV="">schemas.xmlsoap.org/.../">
      3
        <SOAP-ENV:Body>
      4
          <Result />
      5
        </SOAP-ENV:Body>
      6
      </SOAP-ENV:Envelope>

    • dkinsley's avatar
      dkinsley
      Creator II

      I logged into AML as admin - I get a fault string saying this is not the latest version - i know that but i still want to lock it.

      <AML>
      <Item type="Document" action= "lock" id="68FDC33766674A2F9E1A34CBC77F3516">
      </Item>
      </AML>

      2020-04-28 12:36:24 [Query] [Result] > 0 item(s) found in 16 ms

      <faultstring>The version of the Item you are trying to lock is not current. Please lock the current version.</faultstring>

      1
      <SOAP-ENV:Envelope
      2
        xmlns:SOAP-ENV="">schemas.xmlsoap.org/.../"
      4
        <SOAP-ENV:Body>
      5
          <SOAP-ENV:Fault>
      6
            <faultcode>1</faultcode>
      7
            <faultactor />
      8
            <faultstring>The version of the Item you are trying to lock is not current.  Please lock the current version.</faultstring>
      9
          </SOAP-ENV:Fault>
      10
        </SOAP-ENV:Body>
      11
      </SOAP-ENV:Envelope>
      • Gopikrishnan's avatar
        Gopikrishnan
        Accelerator II

        Yes, you cannot able to lock the In Change item but AML query what I provided should work. Can you check the permission of the inchange part in UI ?

        Check which identity has update access and add your account / admin into that identity