Skip to main content
October 9, 2017
Solved

Unable to retrieve Status after REST Bulk Leads Insert

I am attempting to upload a CSV file using the REST Leads Bulk Import.

When I submit the request, I get the following,

{"batchId":1124,"importId":"1124","status":"Queued"}

I then use the batchId (in this case 1124) to attempt to poll for the results using the Classic ASP Code below:

Set xmlHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP.3.0")

xmlHTTP.Open "GET", "REDACTED.mktorest.com/bulk/v1/batch/1124.json", false

xmlHTTP.setRequestHeader "content-type", "application/json"

xmlHTTP.setRequestHeader "Authorization", "bearer " & access_token

xmlHTTP.Send

I don't get any results back.  Anyone know what the problem could be?  I would expect to see a status of Queued, Importing, Complete, Failed but I get no response whatsoever.

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
October 9, 2017

The redacted portion is your Munchkin ID, which is already public.

Your URL appears to be missing the path segment /leads/ - /bulk/v1/leads/batch/1124.json

Also, a GET doesn't need a Content-Type.

2 replies

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
October 9, 2017

The redacted portion is your Munchkin ID, which is already public.

Your URL appears to be missing the path segment /leads/ - /bulk/v1/leads/batch/1124.json

Also, a GET doesn't need a Content-Type.

Translate
October 9, 2017

Sanford.  Thanks for catching that.  It resolved my issue!

Translate