You need to sign in to do that
Don't have an account?
query bulk id value is not a string
Hi,
I am using following query soap request to fetcg the contact details whose acccountID='00300000003TLmf'.
I am getting fault string sayig that query bulk id value is not a string.(faultcode=1101)
I did not understand the reason for this error message. Can anyone please advise me to fix the error.
Any help woulb me much appreciated.
Thanks,
Prudhvi
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="salesforce" xmlns:types="salesforce/encodedTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<tns:headerStruct id="id1">
<session_id xsi:type="xsd:string">kOjEcPmbvnYfnRNycWT5whcHV1Wjy3hDf8X5OashL03YpcKGUIQraAL0KR0KJ9yvJJa2cHSK.XeiHhakibmVNPbtzKggVlhL</session_id>
<version xsi:type="xsd:string">2.0</version>
</tns:headerStruct>
</soap:Header>
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<q1:query xmlns:q1="sfconnector:SalesforceConnector">
<version xsi:type="xsd:string">2.0</version>
<session_id xsi:type="xsd:string">kOjEcPmbvnYfnRNycWT5whcHV1Wjy3hDf8X5OashL03YpcKGUIQraAL0KR0KJ9yvJJa2cHSK.XeiHhakibmVNPbtzKggVlhL</session_id>
<scope xsi:type="xsd:string">idList</scope>
<type xsi:type="xsd:string">contact</type>
<maxRows xsi:type="xsd:int">5</maxRows>
<select href="#id1"/>
<idList href="#id2"/>
</q1:query>
<soapenc:Array id="id1" soapenc:arrayType="xsd:string[3]">
<Item>firstName</Item>
<Item>lastName</Item>
<Item>businessPhone</Item>
</soapenc:Array>
<soapenc:Array id="id2" soapenc:arrayType="xsd:anyType[1]">
<Item href="#id3"/>
</soapenc:Array>
<soapenc:Array id="id3" soapenc:arrayType="tns:mapEntry[3]">
<Item href="#id4"/>
<Item href="#id5"/>
<Item href="#id6"/>
</soapenc:Array>
<tns:mapEntry id="id4" xsi:type="tns:mapEntry">
<key xsi:type="xsd:string">field</key>
<value xsi:type="xsd:string">accountID</value>
</tns:mapEntry>
<tns:mapEntry id="id5" xsi:type="tns:mapEntry">
<key xsi:type="xsd:string">value</key>
<value xsi:type="xsd:string">00300000003TLmf</value>
</tns:mapEntry>
<tns:mapEntry id="id6" xsi:type="tns:mapEntry">
<key xsi:type="xsd:string">operator</key>
<value xsi:type="xsd:string">equals</value>
</tns:mapEntry>
</soap:Body>
</soap:Envelope>
Hi,
I found the error. I was using scope = idList instead filter.
I have changed the scope to filter and tested it . Now its working fine.
Thanks,
Prudhvi