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.