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

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

You may recvieve the error "One or more field types are not installed properly. Go to the list settings page to delete these fields." for the following reasons when executing a SPQuery (CAML).



1. You are trying to access a field that the internal name is different from the display name in the CAML query. For example if you renamed Title to something else other than Title. The other thing to note is that if the internal name of a field has a space the space should be delimmited as _x0020_ for each space in the name. If you don't know the internal name or would like to call it based on the friendly name simply use the OM to get it. list.Fields["Display Name"].InternalName.ToString().
2. If you try to reuse the SPQuery object without reinstianting it using the query = new SPQuery(). If you don't do this it will cause the erro because the SPQuery has properties that were set the last time the query was executed.

Note: Reuse of SPQuery = bad idea.

Comments

Popular posts from this blog

Understanding Top line and Bottom line?

How to activate PF UAN account

Scrum Master vs Product Owner