Query Table Storage – illegal characters

Today i was solving a strange behaviour, aka: bug.

Problem:
Executing the following line:
DataContext.SomeModelObject.Where(p => p.Name == name)
just gave me the invalid input error.

Inspecting the query with fiddler i saw that name had a ‘#’ in it.

Solution: Encoding the variable so it could be passed in the url solved my issue.

Hope this helps …

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.