BOM Editing issue

Hello Guys,

I want update Part BOM Quantity  By Nash Tool.

Using below AML .

<AML>
<Item type="Part BOM" action="edit" where="related_id=(select id FROM innovator.Part WHERE ITEM_NUMBER='424-01-00001' and IS_CURRENT='1') ">
<quantity>9</quantity>
</Item>
</AML>

But  I am not able update Quantity . I am getting below error message.

-<SOAP-ENV:Envelope>
-<SOAP-ENV:Body>
-<SOAP-ENV:Fault>
 <faultcode>SOAP-ENV:Server.ItemAnalysisException</faultcode>
 <faultstring>Item Analysis Error. Some Items have incorrect attribute/property values syntax. See details for more information. Details: Incorrect value: "where="related_id=(select id FROM innovator.Part WHERE ITEM_NUMBER='424-01-00001' and IS_CURRENT='1') "". Incorrect value explanation: "select" is forbidden in where attribute. Incorrect value: "where="related_id=(select id FROM innovator.Part WHERE ITEM_NUMBER='424-01-00001' and IS_CURRENT='1') "". Incorrect value explanation: Item hasn't property referred to column with name "ITEM_NUMBER" </faultstring>
-<detail>
 <af:legacy_detail>Item Analysis Error. Some Items have incorrect attribute/property values syntax. See details for more information. Details: Incorrect value: "where="related_id=(select id FROM innovator.Part WHERE ITEM_NUMBER='424-01-00001' and IS_CURRENT='1') "". Incorrect value explanation: "select" is forbidden in where attribute. Incorrect value: "where="related_id=(select id FROM innovator.Part WHERE ITEM_NUMBER='424-01-00001' and IS_CURRENT='1') "". Incorrect value explanation: Item hasn't property referred to column with name "ITEM_NUMBER" </af:legacy_detail>
 <af:exception message =" Item Analysis Error. Some Items have incorrect attribute/property values syntax. See details for more information. Details: Incorrect value: "where="related_id=(select id FROM innovator.Part WHERE ITEM_NUMBER='424-01-00001' and IS_CURRENT='1') "". Incorrect value explanation: "select" is forbidden in where attribute. Incorrect value: "where="related_id=(select id FROM innovator.Part WHERE ITEM_NUMBER='424-01-00001' and IS_CURRENT='1') "". Incorrect value explanation: Item hasn't property referred to column with name "ITEM_NUMBER" " type =" Aras.Server.Core.ItemAnalysisException " />
 </detail>
 </SOAP-ENV:Fault>
 </SOAP-ENV:Body>
 </SOAP-ENV:Envelope>
Can you please help me ?
Regards
Ashok Kumar Yadav

Parents Reply
  • Normally you wouldn´t edit Part BOM directly. In your case it could happen, that multiple BOM items are affected. 

    It might be possible to use the keyed_name, but not sure if this query would work:

    <Item type="Part BOM" action="edit" where="keyed_name='yourPN' and IS_CURRENT='1') ">

    Normally you edit BOM items from the Parent part. Or make a get query first and then use the result for edit.

Children