caml

0x81020014One or more field types are not installed properly. Go to the list settings page to delete these fields

心已入冬 提交于 2019-12-07 23:33:32
问题 In sharepoint when trying to update a list I am getting the error: 0x81020014One or more field types are not installed properly. Go to the list settings page to delete these fields. The Caml that is being created is: <Batch PreCalc='TRUE' OnError='Continue'> <Method ID='1' Cmd='Update'> <Field Name='ID'>4</Field> <Field Name='Flagged'>False</Field> </Method> </Batch> When I run the Caml from U2U it works fine and the field updates. When I debug my code in VS I get the error above. The code

Is there a way to get Folder object from ListItem one?

久未见 提交于 2019-12-07 13:11:11
问题 I'm trying to get Folder object by its path in SharePoint 2010 client application using Client Side Object Model (.Net 4.0). I need to check whether folder described by 'folderPath' variable exists in the library and then get the Folder object for further operations. To enhance performance, I chose to use CAML query to filter the list. My code: IEnumerable<List> library = this.clientContext.LoadQuery( this.clientContext.Web.Lists.Where(p => p.Title == this.documentLibrary)); this

CAML > get an item by it's URL

强颜欢笑 提交于 2019-12-07 03:23:55
问题 Should this CAML be working. (I tried it with u2u and it does not display the URL column.) I get this error. {System.ApplicationException} = {"One or more field types are not installed properly. Go to the list settings page to delete these fields."} <Where> <Eq> <FieldRef Name='URL' /> <Value Type='URL'>/path/HR Policy.docx</Value> </Eq> </Where> 回答1: Querying for a Document in a Document Library Looks like you are trying to find a document in a document library using CAML. You can do this by

CAML OrderBy for SharePoint Recurring Calendar Event

我的未来我决定 提交于 2019-12-06 09:23:11
The following is the CAML query from a calendar view for a SharePoint list that I have. I have added an OrderBy statement that references two custom columns within the list. <Query> <Where> <DateRangesOverlap> <FieldRef Name="EventDate"/> <FieldRef Name="EndDate"/> <FieldRef Name="RecurrenceID"/> <Value Type="DateTime"> <Month/> </Value> </DateRangesOverlap> </Where> <OrderBy> <FieldRef Name="MyOrder"/> <FieldRef Name="MyTitle"/> </OrderBy> </Query> The OrderBy statement works fine for all events that are not recurring. Can I use OrderBy with recurring events? If so, how? Did you happen to try

Is there a way to get Folder object from ListItem one?

僤鯓⒐⒋嵵緔 提交于 2019-12-05 21:50:59
I'm trying to get Folder object by its path in SharePoint 2010 client application using Client Side Object Model (.Net 4.0). I need to check whether folder described by 'folderPath' variable exists in the library and then get the Folder object for further operations. To enhance performance, I chose to use CAML query to filter the list. My code: IEnumerable<List> library = this.clientContext.LoadQuery( this.clientContext.Web.Lists.Where(p => p.Title == this.documentLibrary)); this.clientContext.ExecuteQuery(); List libraryList = library.FirstOrDefault(); //code to handle libraryList == null

CAML > get an item by it's URL

梦想的初衷 提交于 2019-12-05 06:43:17
Should this CAML be working. (I tried it with u2u and it does not display the URL column.) I get this error. {System.ApplicationException} = {"One or more field types are not installed properly. Go to the list settings page to delete these fields."} <Where> <Eq> <FieldRef Name='URL' /> <Value Type='URL'>/path/HR Policy.docx</Value> </Eq> </Where> Querying for a Document in a Document Library Looks like you are trying to find a document in a document library using CAML. You can do this by using the hidden column named "FileRef": <Where><Eq><FieldRef Name="FileRef"/><Value Type="Url">sites

SharePoint list CAML query using CONTAINS

丶灬走出姿态 提交于 2019-12-04 23:56:40
I'm trying to query a SharePoint list using the following CAML query in a webpart. I have tested the query in U2U CAML Query Builder and Stramit CAML Viewer and it works fine, only returning the matching records, but when I use it in my webpart it return all list items. It is driving me crazyyyyy. Here is the code: string camlQuery = string.Format(@"<Query><Where><Contains><FieldRef Name='Title' /><Value Type='Text'>2</Value></Contains></Where></Query>"); SPQuery query = new SPQuery(); query.Query = camlQuery; SPListItemCollection items = Articles.GetItems(query); grid.DataSource = items

CAML queries: how to filter folders from result set?

最后都变了- 提交于 2019-12-04 15:45:20
问题 I'm using caml query to select all documents which were modified or added by user. Query runs recursively on all subsites of specified site collection. Now problem is I can't get rid of folders which are also part of result set. For now I'm filtering them from result datatable. But I'm wondering: Is it possible to filter out folders from result set just by using caml? 回答1: This CAML actually does the trick: <Where> <Eq> <FieldRef Name='FSObjType' /> <Value Type='Integer'>0</Value> </Eq> <

U2U Caml Query Builder no longer available? [closed]

允我心安 提交于 2019-12-04 10:32:30
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm trying to download the fantastic U2U Caml Query Builder but all the links I'm finding are dead and I can't find any references to it on the u2u site. Has it been end-of-lifed? Does anyone know of a location where it is still available from? Dead link - http://www.u2u.be/res/tools/camlquerybuilder.aspx new

Datetime comparison in CAML Query for Sharepoint

不打扰是莪最后的温柔 提交于 2019-12-03 16:50:05
问题 i'm trying to have some item from a sharepoint list, depends on date in a custom column. I've created my query with U2U Caml Builder, and that's worked but when I put it in my own code in my webpart, it always return to me all the items od the list. Here is my code: DateTime startDate = new DateTime(Int32.Parse(year), 1, 1); DateTime endDate = new DateTime(Int32.Parse(year), 12, 31); SPQuery q = new SPQuery(); q.Query = "<Query><Where><And><Geq><FieldRef Name='Publicate Date' /><Value