The leadSelector is not supported. 20110 SOAP API getLeadChanges method

Anonymous
Not applicable
Hello,

I'm trying to use the SOAP API getLeadChanges method with a staticListSelector and the result i get back is this: The leadSelector is not supported. (20110).  The documentation says the lead selector is supported after version 2_2, so i'm guessing i'm doing something wrong any help would be appreciated.

I'm currently using 2_8 version of the WSDL

SOAP REQUEST:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mkt="http://www.marketo.com/mktows/">
   <soapenv:Header>
      <mkt:AuthenticationHeader>
         <mktowsUserId>MODIFIED FOR SECURITY</mktowsUserId>
         <requestSignature>MODIFIED FOR SECURITY</requestSignature>
         <requestTimestamp>2015-04-21T13:17:23-06:00</requestTimestamp>
      </mkt:AuthenticationHeader>
   </soapenv:Header>
   <soapenv:Body>
      <mkt:paramsGetLeadChanges>
         <startPosition>
            <oldestCreatedAt>2015-04-10</oldestCreatedAt>
         </startPosition>
         <leadSelector>
            <staticListId>11724</staticListId>
         </leadSelector>
      </mkt:paramsGetLeadChanges>
   </soapenv:Body>
</soapenv:Envelope>

SOAP RESPONSE:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Body>
      <SOAP-ENV:Fault>
         <faultcode>SOAP-ENV:Client</faultcode>
         <faultstring>20110 - Bad parameter</faultstring>
         <detail>
            <ns1:serviceException xmlns:ns1="http://www.marketo.com/mktows/">
               <name>mktServiceException</name>
               <message>The leadSelector is not supported. (20110)</message>
               <code>20110</code>
            </ns1:serviceException>
         </detail>
      </SOAP-ENV:Fault>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Tags (1)
1 REPLY 1
Anonymous
Not applicable
Hello,

I added a type and a namespace to the leadSelector:

<leadSelector xsi:type="mkt:StaticListSelector" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <staticListId>11724</staticListId>
</leadSelector>

it changed the error to this:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Body>
      <SOAP-ENV:Fault>
         <faultcode>SOAP-ENV:Client</faultcode>
         <faultstring>20110 - Bad parameter</faultstring>
         <detail>
            <ns1:serviceException xmlns:ns1="http://www.marketo.com/mktows/">
               <name>mktServiceException</name>
               <message>The number of leads cannot exceed 100 for the given leadSelector (20110)</message>
               <code>20110</code>
            </ns1:serviceException>
         </detail>
      </SOAP-ENV:Fault>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

So i tried adding a batch size and limiting it to 100, but the same error occurs.  As i understand it it is supposed to return a stream position so you can paginate.  I'm guessing i'm still missing something, any help would be appreciated.

Thanks,
Joe S