REST API: Add Leads to List - Import completed with errors. | Community
Skip to main content
November 6, 2014
Question

REST API: Add Leads to List - Import completed with errors.

  • November 6, 2014
  • 3 replies
  • 1379 views
Hi,

I'm using the REST API to import leads (email only) into a list.  The import responses with a success status and i get a batchId.  However, when i check the status of the batchId, this is the response i get:

{
  "requestId": "xxxxxxxx",
  "result": [{
    "batchId": 55555,
    "status": "Complete",
    "numOfLeadsProcessed": 0,
    "numOfRowsFailed": 202,
    "numOfRowsWithWarning": 0,
    "message": "Import completed with errors, 0 records imported (0 members), 202 failed"
  }],
  "success": true
}

I check my notification area but there's no information on why the import failed.  Any idea what the issues is or how I can find out what is missing?

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

3 replies

November 6, 2014
I recommend querying the Get Import Failure File REST API to see why the import failed:
developers.marketo.com/documentation/rest/get-import-failure-file/
November 10, 2014
Tried hitting the import failure endpoint and got this:

Email,Import Failure Response
test@test.com, Unknown Error
abc@test.com, Unknown Error

Wasn't very informative responses unforunately. All 202 were Unknown Errors.

thanks
November 10, 2014
It's hard to say without seeing the actual file. Anecdotally, the most common cause of failure I have seen is including special characters in API requests.