It's not a typical source_id/related_id relationship. I'm trying to combine the following AML, If I run them separately they work, but when I try to combine them is when I get the error.
// (code1) get id from min_delivered_component
<AML>
<Item type="MIN_DELIVERED_COMPONENT" action="get" select="item_number">
<id>@Parameter</id>
</Item>
</AML>
// (code2) get rma_no from the relationship of min_rma_parts and min_rma
<AML>
<Item type="MIN_RMA" action="get" select="rma_no">
<Relationships>
<Item type="MIN_RMA_PARTS" action="get" select="related_id">
<item_number>@Parameter</item_number>
</Item>
</Relationships>
</Item>
</AML>
// combine AML from (code1) and (code2)
<AML>
<Item type=”MIN_RMA” action=”get” select=”rma_no”>
<Relationships>
<Item type=”MIN_RMA_PARTS” action=”get” select=”related_id”>
<item_number>
<Item type=”MIN_DELIVERED_COMPONENT” action=”get” select=”item_number”><id>@Parameter</id></Item>
</item_number>
</Item>
</Relationships>
</Item>
</AML>