Get Response Export Progress status is not complete | XM Community
Skip to main content

Hello,
I'm using axios to call the api. Here is how I'm coding the get response export progress:
1.png
And finally I'm combining all needed calls into one big function like this:
4.png
The problem is sometimes (seemingly randomly) I get undefined survey responses. progressId is not null (I checked for that) I think the reason is the status in the Get Response Export Progress is not "complete". Should I keep looping until I get a status of complete? Am I doing something obviously wrong here?
It says in the docs " Keep looping until status has the value complete.". What does that mean in this context? Can I use recursion and keep calling the function until status === 'complete'?
Any help is appreciated!

badi
I have used Postman and faced this issue when the number of responses is relatively large, it takes time to "complete". Yes, you need to keep it in a loop until it says complete. After that only you would be able to pull the file id and actual response file.
Also, in this context, it means running the API call again and again until the status is complete.
Hope it helps!


Deepak Thank you for providing a solution and clarifying the information in the doc as well! Also, thank you badi for confirming that the solution works 🙂


Leave a Reply