Solved
Qualtrics API export - Missing latest results
I'm using the Qualtrics API to export my responses programmatically.
For my use case I need my data to be updated and synced quite often, unfortunately from my tests this doesn't seem to happen.
If I fill a survey, and run my code to export the data straight after ( I'm using the partial export) the latest result is missing. Generally after a variable amount of time ( from 10m to 1hr) the data is there.
I'm also setting `seenUnansweredRecode` to the caching to kick in, anyone is experiencing the same issue ? I'm using really simple code ( from the documentation) and I also tried using the REST APIs with POSTMAN, with no luck.
Thanks in advance.
Best answer by w.patrick.gale
Qualtrics support suggested I add an 'endDate' parameter to the API call to prevent latency (at least while they look into the cause of latency when endDate is not used). I modified the fields parameters to include an 'endDate' two days into the future and so far NO MORE LATENCY ISSUES. That seemed to do the trick for me. Two thumbs up.
_(Note this issue pertains to API v3.0 calls to https://yourdatacenterid.qualtrics.com/API/v3/responseexports)_
$fields = array(
'surveyId' => $strSurveyId,
'format' => 'json',
'startDate' => '2018-09-18T00:00:00Z',
'endDate' => '2018-09-20T00:00:00Z',
'useLocalTime' => true
);
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
