Forum Discussion

Former_Member's avatar
Former_Member
Accelerator III
8 years ago

Update Revision Part

I have item Part, with revision is "A" and state "Released" Now, i want update revision increment "B", but appear error "You have insufficient permissions to perform 'update' operation" Please for help me! Source code C#:
Item queryItem = _ArasInnovator._Innovator.newItem("Part","edit"); queryItem.setProperty("major_rev", "B"); queryItem.setAttribute("where", "item_number='5656'"); queryItem.setAttribute("and", "major_rev='A'"); Item araspartItems = queryItem.apply();
Error detail:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="">schemas.xmlsoap.org/.../"> <SOAP-ENV:Body> <SOAP-ENV:Fault xmlns:af="">www.aras.com/InnovatorFault"> <faultcode>SOAP-ENV:Server.InsufficientPermissionsException</faultcode> <faultstring> <![CDATA[You have insufficient permissions to perform 'update' operation.]]> </faultstring> <detail> <af:legacy_detail> <![CDATA[You have insufficient permissions to perform 'update' operation.]]> </af:legacy_detail> <af:exception message="You have insufficient permissions to perform 'update' operation." type="Aras.Server.Core.InsufficientPermissionsException" /> <af:permission type="can_update" itemtype="Part" id="4E96B653970E4DC19B929FFF74E3FF3C" /> </detail> </SOAP-ENV:Fault> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
 

2 Replies

  • Hello, The major_rev will be incremented automatically each time a Part is moved from the Releasted state to the Preliminary state again. You typically won't set this property manually at all. You can create a new revision a couple of different ways.
    1. Use a Change Management process like an ECO to create a new revision of the Part
    2. If you are the Owner of the Part, you can run the 'Create New Revision' action to automatically increment the major_rev and move the Part to the Preliminary state
    Chris __________________________________ Christopher Gillis Aras Labs Software Engineer
  • I had use method "PE_CreateNewRevision" and result is created new revision. Thanks you for help!