How get the result of a workflow task wich failed | XM Community
Skip to main content

Hi there,

 

I built a workflow based on multiple Qualtrics webservice calls. Sometimes, the number of calls exceed the limits and the webservice task failed.

 

I would like to identify this fail for making a condition after the task. But I’ve got a problem with that : the body result of a succedded task and a failed task are totally differents. Look at this 2 exemple :

Failed

{
"name": "This task has been attempted too many times. Wait a few minutes and try again.",
"message": "{\"meta\":{\"requestId\":\"f64cc522-4cba-4252-9383-5bc5bba7f870\",\"httpStatus\":\"429 - Too many requests\",\"error\":{\"errorCode\":\"RL_1.0\",\"errorMessage\":\"Too many requests, please reduce your load on the server.\"}}}",
"needRetry": true
}

Succeedded

{
"Status Code": 200,
"Headers": "{\"request-time\":\"460\",\"x-frame-options\":\"DENY\",\"x-xss-protection\":\"1; mode=block\",\"x-permitted-cross-domain-policies\":\"master-only\",\"referrer-policy\":\"strict-origin-when-cross-origin\",\"x-content-type-options\":\"nosniff\",\"Permissions-Policy\":\"camera=(), geolocation=(), microphone=()\",\"Date\":\"Thu, 10 Aug 2023 17:34:00 GMT\",\"Connection\":\"keep-alive\",\"Content-Security-Policy-Report-Only\":\"frame-ancestors 'self' *.qualtrics.com *.my.salesforce.com *.visualforce.com *.visual.force.com *.lightning.force.com; report-uri https://sjc1.qualtrics.com/csp-report\",\"Strict-Transport-Security\":\"max-age=31536000; includeSubDomains\",\"Content-Type\":\"application/json\"}",
"Data": "{\"result\":{\"responseId\":\"R_3WBXoI7dXxnUsFo\"},\"meta\":{\"requestId\":\"8beb3d7b-f887-4aec-89ed-29c820779f70\",\"httpStatus\":\"200 - OK\"}}"
}

 

In my condition I only have Status Code, Header and Data. How to get and display “name”, “message” or “needRetry” ?

 

Thanks for your help!

Hi ​@JR33, old thread,  but with no answers so far. 

I’ve got a pretty equal topic, mentioned here: 

Problem is, that at the moment there seems not to be the possibility to fetch the status of a failed web service task.

My condition fails, according to Qualtrics the result out of a failed web service task is null:

 

In case you have found a solution in the meantime then just let me know ;-)


Leave a Reply