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.


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


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


You are adding an entity as below,


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


In above code if you notice Partition Key Value is


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.