Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

Thanks

share|improve this question

1 Answer 1

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.

http://sharepointfieldnotes.blogspot.com/2009/09/spsitedataquery-limited-to-10-document.html

http://sharepointfieldnotes.blogspot.com/2009/09/spsitedataquery-limited-to-10-document_08.html

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

Your Answer

 
discard

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