Import Lead Error Message

Anonymous
Not applicable

Posting gives:

Content type 'multipart/form-data;boundary=OFFBSLmEbplIdH2dZWxu4IMYRF8j4Vwdaxz6ZHd3' not supported

Please advise as to the issue. 

Per documentation, the l
eaddata.csv is being posted as "multi part form data".

Tags (1)
10 REPLIES 10
Anonymous
Not applicable
Hmmmm. Not sure then. There APIs are very trial and error, unfortunately
Anonymous
Not applicable
Thanks Josh. That brought me back to the System error (611)...
Anonymous
Not applicable
Do you have &format=csv in your post URL? EXAMPLE: https://018-APH-439.mktorest.com/bulk/v1/leads.json ?access_token=XXXXX &format=csv
Anonymous
Not applicable
Josh - Thanks!!!

I'm still having trouble, though I believe I'm close. I'm getting the error message 1002: "Missing value for required parameter 'format'" although the value is obviously there. Here's the json for my post:

Starting job Pro_Drip_RestClient at 15:14 13/02/2015.

{
"format":"csv",
"lookupField":"email",
"listId":"49394",
"file":"....some long stream of base64 encoded csv file..."
}

here's the response:
 
{
"requestId":"930b#14b84cb1800"
,"success":false,
"errors":
[{
"code":"1002",
"message":"Missing value for required parameter 'format'"
}]
}

Anyone have any thoughts?
Anonymous
Not applicable
Yes; I was able to get this to work!
  1. Using a basic HTTP POST with the actual csv file.
  2. Check your post URL. The documentation previously had /rest/v1 - since its been updated. EXAMPLE: https://018-APH-439.mktorest.com/bulk/v1/leads.json?access_token=XXXXX&format=csv
  3. The csv file format was also a mystery, which i figured out trial and error. You can use this template that is correct: https://www.dropbox.com/s/vcywrwi3ksf29ay/import.csv?dl=0 
  4. Dont specify any content-type in your post / header
Anonymous
Not applicable
Hello - any luck on this? I have a similar issue with the Import Lead rest API. Here's the response:

{"requestId":"eb22#14b7f03cd7a","success":false,"errors":[{"code":"611","message":"System error"}]}

Any thoughts on further troubleshooting would be really helpful.
Anonymous
Not applicable
When specifying Content-Type in header of my POST (value="multipart/form-data) I recieve the following:

{"requestId":"33d6#14a1c7d2652","success":false,"errors":[{"code":"611","message":"System error"}]}

 
Anonymous
Not applicable
Full Response as follows:

{"requestId":"3bc6#14a1c501966","success":false,"errors":[{"code":"612","message":"Content type 'multipart/form-data;boundary=OgfGSKuqHJaNjgksbWWEY_63_bBePJHO0' not supported"}]}
Anonymous
Not applicable

Yes, I am using the Import Lead REST API;

DOC URL: http://developers.marketo.com/documentation/rest/import-lead/

Josh_Hill13
Level 10 - Champion Alumni
Josh,
Can you be clearer about what you are attempting to do and where? You posted this in API, but are talking about a CSV file, so it's not clear if you are doing this via API or something else.

It might help to create a support ticket for this one.