Skip to main content
November 6, 2013
Question

ImportToList method returning 20109: Parameters Required

  • November 6, 2013
  • 1 reply
  • 619 views

Hi Developers,

I am trying to use importToList method in my API. I am sending following SOAP request to Marketo

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header>
        <ns1:AuthenticationHeader xmlns:ns1="http://www.marketo.com/mktows/">
            <mktowsUserId>***************************************</mktowsUserId>
            <requestSignature>********************************</requestSignature>
            <requestTimestamp>2013-11-05T22:45:06-08:00</requestTimestamp>
        </ns1:AuthenticationHeader>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <ns1:paramsImportToList xmlns:ns1="http://www.marketo.com/mktows/">
            <programName>Free Trial Request</programName>
            <importFileHeader>First Name,Last Name,Email,Job Title</importFileHeader>
            <importFileRows>
                <stringItem>Steve,J,stevej@xyz.com,SMTS</stringItem>
            </importFileRows>
            <importListMode>UPSERTLEADS</importListMode>
            <listName>FreeTrialList</listName>
            <clearList>true</clearList>
            <campaignName>Free Trial Request</campaignName>
        </ns1:paramsImportToList>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

But this is returning me error saying "20109: Parameters Required". It doesn't tell me which parameter is missing.

I used the same parameters in other code which uses Marketo library created on Github, there it works well. Can soemone please verify if my request is correct or I am missing any parameters.


Thanks.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

November 7, 2013
Hi Eric,

Change the importFileHeader so that it uses "Email Address" instead of "Email.

The full error message may have been missed and should have looked like 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>20109 - Parameter required</faultstring>
         <detail>
            <ns1:serviceException xmlns:ns1="http://www.marketo.com/mktows/">
               <name>mktServiceException</name>
               <message>Import header missing fields required for de-duplication. Missing fields (Email Address) (20109)</message>
               <code>20109</code>
            </ns1:serviceException>
         </detail>
      </SOAP-ENV:Fault>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

I hope this helps.