Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

Error: RetrieveMultiple - The ConditonOperator.Equal requires 1 value/s, not 0. Parameter Name: LastName

$
0
0

Hi, I'm trying to create a SOAP request for CRM Online, and I'm having issues with the Retrieve Multiple Action.

I can retrieve all without using the conditionals, but it makes sense to be able to use the filters.

Anyone know where the issue can be here?

<s:Body>
    <RetrieveMultiple xmlns="schemas.microsoft.com/.../Services">
        <query i:type="b:QueryExpression" xmlns:b="schemas.microsoft.com/.../Contracts" xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns:c="schemas.microsoft.com/.../Arrays">
            <b:ColumnSet>
                <b:AllColumns>false</b:AllColumns>
                <b:Columns xmlns:c="schemas.microsoft.com/.../Arrays">
                    <c:string>firstname</c:string>
                    <c:string>lastname</c:string>
                </b:Columns>
            </b:ColumnSet>
            <b:Criteria>
                <b:Conditions>
                    <b:ConditionExpression>
                        <b:AttributeName>lastname</b:AttributeName>
                        <b:Operator>Equal</b:Operator>
                        <b:Values xmlns:b="schemas.microsoft.com/.../Arrays">
                            <c:anyType i:type="c:string" xmlns:c="www.w3.org/.../XMLSchema">Something</c:anyType>
                        </b:Values>
                    </b:ConditionExpression>
                </b:Conditions>
            </b:Criteria>
            <b:EntityName>contact</b:EntityName>
            <b:Distinct>false</b:Distinct>
            <b:LinkEntities />
            <b:Orders />
            <b:TopCount>5</b:TopCount>
            <b:PageInfo>
                <b:Count>0</b:Count>
                <b:PageNumber>0</b:PageNumber>
                <b:PagingCookie i:nil='true'/>
                <b:ReturnTotalRecordCount>false</b:ReturnTotalRecordCount>
            </b:PageInfo>
        </query>
    </RetrieveMultiple>
</s:Body>

I opened a ticket here:

(https://social.microsoft.com/Forums/en-US/b5fbdcee-bfa3-4248-8bad-3b8fa4f1521c/error-the-conditonoperatorequal-requires-1-values-not-0-parameter-name-lastname?forum=crmdevelopment)

Hopefully someone will be able to help me :)

Thanks!

Amit


Viewing all articles
Browse latest Browse all 55831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>