Bulk Import Lead - throws 611 system error | Community
Skip to main content
New Participant
April 28, 2022
Solved

Bulk Import Lead - throws 611 system error

  • April 28, 2022
  • 1 reply
  • 4702 views

Hi everyone, 
I'm trying to generate a bulk import for leads. I used the documentation as refrence

https://developers.marketo.com/rest-api/bulk-import/bulk-lead-import/


But unfortunately I always receive a system error. Can anybody help and knows whats wrong?

The respond I receive:

{ "requestId": "103cc#180703deac5", "success": false, "errors": [ { "code": "611", "message": "System error" } ] }


What I do
POST:

{{base_url}}/bulk/v1/leads.json?format=csv


Header:

Content-Type:multipart/form-data; boundary=------WebKitFormBoundaryBQACkJZyaiIAXog Host:784-BQV-997.mktorest.com


Body
- This is just a test due to the documentation to ensure that the error is not caused by my csv data

------WebKitFormBoundaryBQACkJZyaiIAXogC Content-Disposition: form-data; name="file"; filename="leads.csv" Content-Type: text/csv FirstName,LastName,Email,Company Able,Baker,ablebaker@marketo.com,Marketo Charlie,Dog,charliedog@marketo.com,Marketo Easy,Fox,easyfox@marketo.com,Marketo ------WebKitFormBoundaryBQACkJZyaiIAXogC--





 

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

Tried a bit around but was not able to find a mistake. Basically originally it was 1:1 the example code from the documentation.

Well, you can’t go trusting that now! 🙂

 

Looks like you have extra whitespace on what you think is an empty line (and which must be empty to conform to the MIME standard). I’ve purposely used a symbol to show it:

 

------WebKitFormBoundaryBQACkJZyaiIAXogC Content-Disposition: form-data; name="file"; filename="leads.csv" Content-Type: text/csv ␠ FirstName,LastName,Email,Company Able,Baker,ablebaker@marketo.com,Marketo Charlie,Dog,charliedog@marketo.com,Marketo Easy,Fox,easyfox@marketo.com,Marketo ------WebKitFormBoundaryBQACkJZyaiIAXogC--

 

 

 

 

 

 

 

1 reply

SanfordWhiteman
New Participant
April 29, 2022

Your Content-Type header and the actual body are out of sync. The header should be:

Content-Type:multipart/form-data; boundary=----WebKitFormBoundaryBQACkJZyaiIAXog

 

 Note 4 hyphens, not 6.

New Participant
April 29, 2022

Hi @sanfordwhiteman 
thanks this helped a lot. 

Unfortunately it now says 

{ "requestId": "f3e5#18074a085fe", "success": false, "errors": [ { "code": "613", "message": "Invalid multipart request" } ] }


Tried a bit around but was not able to find a mistake. Basically originally it was 1:1 the example code from the documentation. 
Do you have any idea? 

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
May 2, 2022

Tried a bit around but was not able to find a mistake. Basically originally it was 1:1 the example code from the documentation.

Well, you can’t go trusting that now! 🙂

 

Looks like you have extra whitespace on what you think is an empty line (and which must be empty to conform to the MIME standard). I’ve purposely used a symbol to show it:

 

------WebKitFormBoundaryBQACkJZyaiIAXogC Content-Disposition: form-data; name="file"; filename="leads.csv" Content-Type: text/csv ␠ FirstName,LastName,Email,Company Able,Baker,ablebaker@marketo.com,Marketo Charlie,Dog,charliedog@marketo.com,Marketo Easy,Fox,easyfox@marketo.com,Marketo ------WebKitFormBoundaryBQACkJZyaiIAXogC--