# Error with Cases as Choices (invalid xml value)

**URL:** <https://forum.dimagi.com/t/error-with-cases-as-choices-invalid-xml-value/7710>\
**Category:** Users\
**Created:** [September 5, 2020, 12:13am UTC](https://forum.dimagi.com/t/error-with-cases-as-choices-invalid-xml-value/7710 "2020-09-05T00:13:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ttseng](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/t/b487fb/32.png) [@ttseng](https://forum.dimagi.com/u/ttseng)\
**Post date:** [September 5, 2020, 12:13am UTC](https://forum.dimagi.com/t/error-with-cases-as-choices-invalid-xml-value/7710/1 "2020-09-05T00:13:31Z")

</div>

Hi, I'm following the instructions outlined in the [Cases as Choices](https://confluence.dimagi.com/display/commcarepublic/Multiple+Choice+Questions+with+Cases+as+Choices) and am able to populate the cases as choices 👍.

However, upon selecting it I get an error occurred message 👎😞

```
Invalid XML Value for Select Option

```

![image](https://dimagi.b-cdn.net/uploads/default/original/2X/c/c4a2b114b65a6470703439f5466f9467c0dc1eac.png)

What am I missing?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Clayton\_Sims](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/clayton_sims/32/496_2.png) [@Clayton\_Sims](https://forum.dimagi.com/u/Clayton_Sims)\
**Post date:** [September 8, 2020, 4:15pm UTC](https://forum.dimagi.com/t/error-with-cases-as-choices-invalid-xml-value/7710/2 "2020-09-08T16:15:17Z")

</div>

What parameter are you using as the **Value Field** for the choices?

---

<div class="post-metadata">

**Author:** ![ttseng](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/t/b487fb/32.png) [@ttseng](https://forum.dimagi.com/u/ttseng)\
**Post date:** [September 8, 2020, 4:24pm UTC](https://forum.dimagi.com/t/error-with-cases-as-choices-invalid-xml-value/7710/3 "2020-09-08T16:24:08Z")

</div>

I'm using:

> @caseid

---

<div class="post-metadata">

**Author:** ![Clayton\_Sims](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/clayton_sims/32/496_2.png) [@Clayton\_Sims](https://forum.dimagi.com/u/Clayton_Sims)\
**Post date:** [September 8, 2020, 5:27pm UTC](https://forum.dimagi.com/t/error-with-cases-as-choices-invalid-xml-value/7710/4 "2020-09-08T17:27:18Z")

</div>

Ah, that's the issue. In the [casedb virtual document](https://github.com/dimagi/commcare-core/wiki/casedb) the attribute to reference is

@case\_id

rather than

@caseid

---

<div class="post-metadata">

**Author:** ![ttseng](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/t/b487fb/32.png) [@ttseng](https://forum.dimagi.com/u/ttseng)\
**Post date:** [September 8, 2020, 5:34pm UTC](https://forum.dimagi.com/t/error-with-cases-as-choices-invalid-xml-value/7710/5 "2020-09-08T17:34:30Z")

</div>

@Clayton_Sims back at it again solving my syntax problems.

Thanks!
