SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I think I found a bug. Please share if you know more about it.

I use GetListItems operation to fetch items to display on an ajaxified form. Just an hour ago everything was fine, but now when I query the list with

<Eq><FieldRef Name='Some/Field'><Value Type='Lookup'>Value</Value></Eq>

The relevant items show up in the result set. But the values for 'Some/Field' (yes there is a slash in the displayname) are displayed as null. The field was never renamed.

What is it? How can I fix?

share|improve this question
Are you using SPServices or some other method? – Marc D Anderson May 27 '10 at 1:49
I spotted the error when I used SPServices and then confirmed using u2u CAML Query Builder – Alexey Krasheninnikov May 27 '10 at 5:08

If the display Name of your field contains a slash and never been modified then I believe you caml should look like this

<Eq><FieldRef Name='Some_x002f_Field'><Value Type='Lookup'>Value</Value></Eq>

Notice the encoded slash (_x002f_).

share|improve this answer
Actually, the slash is only in displayname. Iternal is all encoded as hell: _x0423__x0432..._x04 – Alexey Krasheninnikov Jun 3 '10 at 8:18
And of course that CAML query has the proper InternalName substituted - once by hand and once by u2uCamlQueryBuilder – Alexey Krasheninnikov Jun 3 '10 at 8:19
I have tried to recreate your problem but it seems to be working fine for me. Added a column with a slash and the only way that I got to fail is if don't encode the slash. You said that the internal is encoded but on you CAML query you are using the display ? you should be using the internal in stead. – Renzo Jun 3 '10 at 9:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.