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.

2 responses to “What is wrong with the Partition Key value?”

  1. […] What is wrong with the Partition Key value? (Dhananjay Kumar) […]

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

Create a website or blog at WordPress.com