SOLVED

Bad Parameter error on SOAP requestCampaign call

Go to solution
Anonymous
Not applicable

Bad Parameter error on SOAP requestCampaign call

RESOLVED: I posted the fix in the replies section.

We're getting the "20114 - Bad parameter" error when calling requestCampaign.

NOTE: The other call we're using, syncLead, is working fine with a success return.  Also, RequestCampaign appears in the Activity Log for the lead despite the error.

We're passing the leadKey (e-mail), source, and campaignId.  I've stepped thru the code to verify these values are correct.  Here's the code (C#):
0EM50000000SY1q.jpg
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: Bad Parameter error on SOAP requestCampaign call

Got it working, had to add the line of code outlined in red.
0EM50000000SZJX.jpg

View solution in original post

3 REPLIES 3
Kenny_Elkington
Marketo Employee

Re: Bad Parameter error on SOAP requestCampaign call

Hey John,

Can you give an example of example of generated XML which is giving this bad parameter error?  It's diffuclt to determine from trying to inerpret code.
Anonymous
Not applicable

Re: Bad Parameter error on SOAP requestCampaign call

Kenny,

That's extremely difficult the way our test environment is set up.  Are there any alternatives?

I've updated the OP with a screenshot of the code for a better understand.
Anonymous
Not applicable

Re: Bad Parameter error on SOAP requestCampaign call

Got it working, had to add the line of code outlined in red.
0EM50000000SZJX.jpg