Question

Sigbjørn D on Sun, 05 Mar 2017 12:55:27


Hi,

I'm encountering a problem while using the Mobile Engagement Export API. 

In brief, I call ExportTasks_CreateFeedbackTaskByDateRange from my Java backend do generate an export, then I poll ExportTask_Get to check how the export is going. After 10 to 20 seconds of polling, I get a response with state=Failed and errorDetails=null. When checking in my Azure Storage container, I see a csv file with size 0 bytes, but that doesn't seem normal.

First I do a HTTP POST to ExportTasks_CreateFeedbackTaskByDateRange with the following payload:

  • containerUrl=https://<storage account>.blob.core.windows.net/<container>?sp=racwdl&sr=sco&sv=2016-05-31&ss=b&se=2017-03-04T17%3A23%3A33Z&srt=sco&sig=<signature>&spr=https 
  • description=<description>
  • campaignType=Announcement
  • campaignWindowStart=2017-01-01T00:00:00.000Z
  • campaignWindowEnd=2017-03-02T00:00:00.000Z
  • exportFormat=CsvBlob

This call returns a 202 Accepted with the following payload:

  • id=<id>
  • description=<description>
  • errorDetails=null
  • state=Queued
  • dateCreated=2017-03-03T17:23:33Z
  • dateCompleted=null
  • exportType=Push

Then, I poll for approximately 10 to 20 seconds with HTTP GETs to ExportTask_Get to get that state of the export before I get the following error:

  • id=<id>
  • description=<description>
  • errorDetails=null
  • state=Failed
  • dateCreated=2017-03-03T17:23:33Z
  • dateCompleted=2017-03-03T17:23:48Z
  • exportType=Push

Can you help me understanding what's wrong?


Sponsored