Invalid embeddedData errorCode RP_13 | XM Community
Solved

Invalid embeddedData errorCode RP_13

  • 25 February 2020
  • 2 replies
  • 4 views

Userlevel 3
Badge +8
  • Level 2 ●●
  • 148 replies
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
icon

Best answer by bappun 21 April 2020, 12:12

View original

2 replies

Userlevel 3
Badge +2
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?

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.

Leave a Reply