One or more field types are not installed properly. Go to the list settings page to delete these fields in executing CAML queries
"<Where><And><Eq><FieldRef Name='الموظف'/><Value Type='User'>" + user +
"</Value></Eq><Geq><FieldRef Name='التاريخ'/><Value Type='DateTime'>" + date +
field1 : الموظف type : user
field2 :التاريخ type : datetime
Can you please check the internal name of the column of your list as shown below,
is it same as you specified in the caml query?
check the internal name as shown bwlo by go to list settings->select column section and mouse hover on the column that will show the internal name of the field on the status bar and used this internal name in the caml query
Hiren Patel | Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.
- Proposed as answer by Dhileep Varma Thursday, August 09, 2012 9:31 AM
As mentioned by Hiren, this issue is due to the internal name of the field that was not matched with the FieldRef Name used in the Caml query. You can also get the internal name of the field using the below code.
string str = list.Fields["Display Name"].InternalName;
Use this internal name of the field in the caml query for all the fields used in the query. This will resolve this issue.
This cause of this error are following:
CAML Query is not well formed
The Fields present in the query is not present in the List on which the query is fired.
Please check the internal name of the Fields for which you are firing the query. Hope this will help.