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

enter image description hereI have a document library which documents are actually document sets each one.

The only way to diferentiate each item is with the column called name, which is actually a guid.

I need to query with that column, but in the UI, it tells me that its a file.

The next code, I tried also with type = Text. but it didnt work.

SPList agendaPoints = subSite.GetSafeListByName(MeetingsCommon.Constants.LISTS_AGENDAPOINTS_NAME);
                                        SPQuery query = new SPQuery();
                                        query.Query = string.Concat("<Where>",
                                                                              "<FieldRef Name='Name' />",
                                                                              "<Value Type='File'>" + name + "</Value>",

![enter code here][2]

The exception is: Microsoft.SharePoint.SPException: One or more field types are not installed properly

share|improve this question
up vote 2 down vote accepted

You can query with document set using "Document Set ID".

see this link might be helpful for you.

share|improve this answer

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.