Updating Reponse - ERROR G_2 | XM Community
Solved

Updating Reponse - ERROR G_2

  • 19 September 2018
  • 7 replies
  • 40 views

I'm trying to update a resonse using the API but I'm getting an error

{
"meta": {
"httpStatus": "500 - Internal Server Error",
"error": {
"errorMessage": "Internal server error. Please contact Qualtrics support.",
"errorCode": "G_2",
"instanceId": null
},
"requestId": "93a2aa39-ac8c-4a17-9e2a-d6058d56112e"
}
}

PUT REQUEST:

url: https://utahgov.co1.qualtrics.com/API/v3/responses/R_etcxaC3q9p7WCXj
headers: {content-type: application/json, x-api-key: MYAPIKEYHERE}
Request Body:
{
"surveyId":MYSURVEYIDHERE
"embeddedData": {"Status of Application":"Pending"}


}

The above is from testing with PostMan. I've also tried in python with the same results.

Thank you
icon

Best answer by ralbritton 26 September 2018, 15:48

View original

7 replies

Userlevel 3
Badge +1
@ralbritton,

Check all fields properly you are passing.
Userlevel 2
Badge +1
Please contact support
> @christxy said:
> @ralbritton,
>
> Check all fields properly you are passing.

I'm assuming that the field name would match the data import id field name that you see if you export your data. For example mine is {""ImportId"":""Status of Application""}
Is this assumption correct?
Userlevel 7
Badge +20
Nope, it should contain the "embedded data name" like in your case "Status of Application"

Did you also try using "Try it out" at below by passing all the required field?
Provide token by clicking on the green key.

https://api.qualtrics.com/docs/update-response
Userlevel 7
Badge +33
In surveyid you have to pass survey code which you can find in account settings or in link.

For embedded variables append with & like &ED[q1]={{q1}} this way you can update response using Postman.and in runner give your CSV file where you stored your updated ed value.
I called support and they helped me figure out the issue
Badge +1

I called support and they helped me figure out the issue

What was the solution?

Leave a Reply