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

Anonymous
Not applicable

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

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
Tags (1)
3 REPLIES 3
Anonymous
Not applicable

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

I recommend querying the Get Import Failure File REST API to see why the import failed:
http://developers.marketo.com/documentation/rest/get-import-failure-file/
Anonymous
Not applicable

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

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

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

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.