AZURE

What is wrong with the Partition Key value?

If you are trying to insert Partition Key and Row Key values as below image then very likely you will encounter DataServiceRequestException.

clip_image001

You cannot have below special characters as value of Partition Key and Row Key.

clip_image002

Let us say you have a table called School and you are trying to insert entity in that table using below code.

clip_image004

You are adding an entity as below,

clip_image005

When you run to add an entity you will get exception as below,

clip_image007

In above code if you notice Partition Key Value is

clip_image008

So while adding an entity makes sure, you are not using four special characters in value of Row Key and Partition Key. I hope this post is useful. Thanks for reading Smile

If you find my posts useful you may like to follow me on twitter http://twitter.com/debug_mode or may like Facebook page of my blog http://www.facebook.com/DebugMode.Net If you want to see post on a particular topic please do write on FB page or tweet me about that, I would love to help you.

About Dhananjay Kumar

Dhananjay Kumar is Developer, Blogger , Speaker, Learner , Mindcracker & Microsoft MVP.

Discussion

Trackbacks/Pingbacks

  1. Pingback: Dew Drop – November 9, 2011 | Alvin Ashcraft's Morning Dew - November 9, 2011

  2. Pingback: Monthly Report November 2011: Total Posts 22 « debug mode…… - December 1, 2011

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

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,380 other followers

Tweets

Categories

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my current or previous employer's view in anyway. © Copyright 2012