Derik Whittaker

Syndication

News


Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Sharepoint Services Gotcha, Field names with Whitespaces

Today I ran into a pesky little issue when trying to query documents from sharepoint. In a previous example I talked about how to query documents from sharepoint, but what I did not know at the time is that if you have a field name that has a whitespace, you have to do some extra work.

If you have a field named ‘FooField’ all is good, however if you have a field named ‘Foo Field’ (notice the whitespace) you will get the following exception.
{System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> 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.

To resolve this issue replace the whitespace with _x0020_ so the new field name would be ‘Foo_x0020_Field’.

Hope this helps someone.

Till next time

Thanks to Tangible Thoughts for showing me the solution to this – post found here.


Posted 08-07-2007 9:25 AM by Derik Whittaker
Filed under: ,

[Advertisement]

Comments

Links (8/7/2007) « Steve Pietrek’s SharePoint Stuff wrote Links (8/7/2007) « Steve Pietrek’s SharePoint Stuff
on 08-07-2007 8:30 PM
Mark Compton wrote re: Sharepoint Services Gotcha, Field names with Whitespaces
on 01-22-2009 4:56 AM

Thank you - was begining to bang my head against the wall.  Saved me hours....

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
Umbraco
NServiceBus
RavenDb
Web Sequence Diagrams
Ducksboard<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)