[midPoint] Object collection error "Resource not defined in a search query" when combining two resources.

Maxwell, Gary Maxwell_G at fortlewis.edu
Mon Aug 14 19:39:47 CEST 2023


Can someone explain why the following objectCollection generates the "Resource not defined in a search query" error? The query receives the error when I combine 2 resources in the same query.
 
<objectCollection >
    <name>test Object Collection</name>
    <iteration>0</iteration>
    <iterationToken/>
    <type>c:ShadowType</type>
    <filter>
        <q:or>
            <q:and>
                <q:ref>
                    <q:path>resourceRef</q:path>
                    <q:value xmlns="">
                     <oid>46fhsnfg-fg64-44eg-r4dg-44gdty3ygsed</oid>
                    </q:value>
                </q:ref>
                <q:equal>
                    <q:path>kind</q:path>
                    <q:value>account</q:value>
                </q:equal>
            </q:and>
            <q:and>
                <q:ref>
                    <q:path>resourceRef</q:path>
                    <q:value xmlns="">
                        <oid>165dfghi-1124-3e34-4344-ccfe414ffde0</oid>
                    </q:value>
                </q:ref>
                <q:equal>
                    <q:path>kind</q:path>
                    <q:value>account</q:value>
                </q:equal>
            </q:and>
        </q:or>
    </filter>
</objectCollection>

Thank you for any help or can point me in the right direction.
-Gary


More information about the midPoint mailing list