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

When executing search on a spweb using SPSiteDataQuery and using a field of type 'Number', the query does not always retun results, although the property query is correct and it must return results. When executing the same query on a document library ; use SPQuery instead of SPSiteDataQuery; on the same spweb, i get the right results.

Any ideas?


share|improve this question
up vote 0 down vote accepted

There is a bug with the SPSiteDataQuery if you have more than 10 document libraries and/or lists in your site collection. You can read about it in the link below.

share|improve this answer
Thank you for your answer :D – Anonymous May 11 '10 at 6:23

Your Answer


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