When using SPSiteDataQuery among the fields you can ask to be returned is a field called EncodedAbsUrl. This field according to the documentation and public opinion is supposed to return the complete URL of the item in question.
Many people have noted, however, that the value returned for this field is truncated at the server name level. So instead of returning a full URL, say;
http://server/site/docs/doc1.docx
it returns a truncated value;
It’s also been noted that it apparently depends on the scope at which you use the SPSiteDataQuery.
My own observation is that when the query is executed at the root or a subsite level, it returns the truncated value. But when the query is executed at a leaf subsite level (a site without any child sites), it returns the other part of the full URL, using the above examples, it would return;
One thought on “SPSiteDataQuery and the EncodedAbsUrl hidden field.”