SOLVED

Re: ErrorCode: 400 on a form

Go to solution
Anonymous
Not applicable

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
Anonymous
Not applicable

Thanks everyone!

We were able to debug it on our own.

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

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

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

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

Anonymous
Not applicable

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

SanfordWhiteman
Level 10 - Community Moderator

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.

Anonymous
Not applicable

Thanks everyone!

We were able to debug it on our own.

Anonymous
Not applicable

Hi Clark,

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

Grégoire_Miche2
Level 10

Hi Clark,

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

-Greg

Justin_Cooperm2
Level 10

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