Clinton's profileCherry BytesBlogListsGuestbookMore ![]() | Help |
|
September 10 Case sensitive CAMLI have been writing some CAML queries recently in my code (for getting items from SharePoint lists), and while this can be frustrating at the best of times, today I started getting an error message I hadn't seen before. No matter what I tried to change the error I kept getting was
I discovered the error seemed to be coming from my CAML query at the following point: <GT> After playing around and trying a number of different things, I finally found the source of my problem was purely a casing issue. I had used a capital T in <GT> - the greater than should be <Gt>. Now why couldn't Microsoft have had a more friendly error message when I ran the CAML code to inform me that my CAML syntax was wrong... September 04 Property problems in SharePoint SearchSharePoint Search can be a very powerful tool. It can also be a very frustrating tool if you get a problem also. Today while testing the search facility I discovered that no matter what search string I attempted to use I would get the following error:
As it turns out the problem is due to a results schema, on your search results page, which doesn't match the schema that you are using for your query. This came about because someone had changed the 'Selected Columns' XML in the 'Search Core Results' Web Part. Luckily the fix is pretty easy (though trying to find a fix by Googling this error will give you nothing), so I thought I'd share the quick few steps that it takes to fix:
The XML, by default, should look something like: <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Columns> <Column Name="WorkId"/> <Column Name="Rank"/> <Column Name="Title"/> <Column Name="Author"/> <Column Name="Size"/> <Column Name="Path"/> <Column Name="Description"/> <Column Name="Write"/> <Column Name="SiteName"/> <Column Name="CollapsingStatus"/> <Column Name="HitHighlightedSummary"/> <Column Name="HitHighlightedProperties"/> <Column Name="ContentClass"/> <Column Name="IsDocument"/> <Column Name="PictureThumbnailURL"/> </Columns> </root> |
|
|