SOLVED

ErrorCode: 400 on a form

Go to solution
Anonymous
Not applicable

ErrorCode: 400 on a form

My developer is trying to create a static Marketo on our website using this documentation: http://developers.marketo.com/blog/server-side-form-post/)) However when we test the form, we are getting the following error:

Screen Shot 2016-01-12 at 4.40.16 PM.png

ErrorCode: 400

Message: {leadCapture/Save2} Approved form not found.

Can anyone else solve this mystery for us? 

Tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: ErrorCode: 400 on a form

Thanks everyone!

We were able to debug it on our own.

View solution in original post

9 REPLIES 9
Justin_Cooperm2
Level 10

Re: ErrorCode: 400 on a form

That blog post talks about the leadCapture/save API not save2

Grégoire_Miche2
Level 10

Re: ErrorCode: 400 on a form

Hi Clark,

ONe of the call parameters is probably wrong. Without the calling code, hard to tell

-Greg

Anonymous
Not applicable

Re: ErrorCode: 400 on a form

Thanks everyone!

We were able to debug it on our own.

Anonymous
Not applicable

Re: ErrorCode: 400 on a form

Hi Clark,

Our developer has the same problem.  How did you fix it?

Anonymous
Not applicable

Re: ErrorCode: 400 on a form

Sounds like the formid probably had a value that didn't exist in Marketo (i.e. the form with that id either was not approved or did not exist at all).

Anonymous
Not applicable

Re: ErrorCode: 400 on a form

I think this is not the case. this is also happening on my end. I have the form created and approved but we still get this error

SanfordWhiteman
Level 10 - Community Moderator

Re: ErrorCode: 400 on a form

You probably aren't setting the field formVid to the form ID (same value as formid)..

Anonymous
Not applicable

Re: ErrorCode: 400 on a form

setting the parameter to formVid instead of "formid" Worked!

SanfordWhiteman
Level 10 - Community Moderator

Re: ErrorCode: 400 on a form

Good news.  But you should be passing formid and formVid when emulating a form post, within the current API.  Set them to the same value.