What I am trying to do is fetch a single list item that has the highest ID, but also has a value in the Shelf field. Below is my query, which I am pretty sure I formatted correctly.

        <Field RefName='Shelf'/>
      <FieldRef Name='ID' Ascending='False' />

However, when I test the code I get the error

Request failed. One or more field types are not installed properly. Go to the list settings page to delete these fields.


I am not sure what it is that is going wrong, since I checked that I am using the actual column name, not the display name (which are the same in this case anyway).

1 Answer 1


Use <FieldRef Name='Shelf'/> instead of <Field RefName='Shelf'/>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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