Can someone help me search for all documents that have more than one released revision? I found a couple of these and I need to check to see if there are more of them and the document numbers. Is there an AML script I could use?
Can someone help me search for all documents that have more than one released revision? I found a couple of these and I need to check to see if there are more of them and the document numbers. Is there an AML script I could use?
Try this
<Item action='get' type='Document' select='item_number,keyed_name'> <config_id condition='in'>select CONFIG_ID from innovator.DOCUMENT where STATE='Released' group by CONFIG_ID having COUNT(*)>1</config_id> </Item>
You need to temporary add the
<operating_parameter key="parse_item" value="false"/>
to InnovatorServerConfig.xml to disable the AML secutity restrictions on the "condition='in'" expression.
I get this error...
<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.ItemAnalysisException</faultcode>
<faultstring><![CDATA[Item Analysis Error. Some Items have incorrect attribute/property values syntax. See details for more information.
Details:
Incorrect value: "<config_id condition="in">select CONFIG_ID from innovator.DOCUMENT where STATE='Released' group by CONFIG_ID having COUNT(*)>1</config_id>". Incorrect value explanation: "select" forbidden in property condition.
]]></faultstring>
<detail>
<af:legacy_detail><![CDATA[Item Analysis Error. Some Items have incorrect attribute/property values syntax. See details for more information.
Details:
Incorrect value: "<config_id condition="in">select CONFIG_ID from innovator.DOCUMENT where STATE='Released' group by CONFIG_ID having COUNT(*)>1</config_id>". Incorrect value explanation: "select" forbidden in property condition.
]]></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: "<config_id condition="in">select CONFIG_ID from innovator.DOCUMENT where STATE='Released' group by CONFIG_ID having COUNT(*)&gt;1</config_id>". Incorrect value explanation: "select" forbidden in property condition.
" type="Aras.Server.Core.ItemAnalysisException" />
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Incorrect value explanation: "select" forbidden in property condition.
Add the
<operating_parameter key="parse_item" value="false"/>
to InnovatorServerConfig.xml
Sorry, I don't have access to the Innovator Server Configuration.
Sorry, I don't have access to the Innovator Server Configuration.
Copyright © 2025 Aras. All rights reserved.