Invalid embeddedData errorCode RP_13 | XM Community
Skip to main content
Solved

Invalid embeddedData errorCode RP_13

  • February 25, 2020
  • 2 replies
  • 22 views

pogi
Level 2 ●●
Forum|alt.badge.img+14
trying to create contact and I'm getting this error. my json for the contact data is: ```json {"firstName": "name", "lastName": "name", "email": "example@email.com", "externalDataRef": "34058345", "embeddedData": {"credentials": "MS", "unithiredate": "11/27/2011", "supervisor": false, "educator": false}} ``` from the API reference the json formatting appears to match to my eyes. Any help would be appreciated

Best answer by bappun

I got the same issue and I think I found the solution.
When using the contact endpoint (https://api.qualtrics.com/reference#create-recipient-contact) it seems that the embeddedData values only accept strings.
Changing {"id": 1} to {"id": "1"} in my embeddedData fixed this issue. I guess that if it doesn't work well for integers, it could be the same for booleans. In your case quoting the "false" might do the trick.
However, in the contact import endpoint (https://api.qualtrics.com/reference#create-contacts-import) everything works fine for me without adding quotes.

2 replies

Forum|alt.badge.img+2
  • Level 2 ●●
  • February 25, 2020
The http body/data looks good, except the "email" attribute need to a valid email. Maybe you only put "[email protected]" in this question but not in the actual request. If you have a valid email and still fail, then can you post more about how you submit the API call?

  • Answer
  • April 21, 2020

I got the same issue and I think I found the solution.
When using the contact endpoint (https://api.qualtrics.com/reference#create-recipient-contact) it seems that the embeddedData values only accept strings.
Changing {"id": 1} to {"id": "1"} in my embeddedData fixed this issue. I guess that if it doesn't work well for integers, it could be the same for booleans. In your case quoting the "false" might do the trick.
However, in the contact import endpoint (https://api.qualtrics.com/reference#create-contacts-import) everything works fine for me without adding quotes.