petercli
petercli

Reputation: 693

azure storage size of partition key out of range?

according to this link , a partition key can be 1kb (https://learn.microsoft.com/en-us/rest/api/storageservices/Understanding-the-Table-Service-Data-Model?redirectedfrom=MSDN)

so why do I get error "the partition key is out of range" ?

I am putting a url value like https://xxx into the partition key . Maybe the slashes are a problem? Thanks,Peter

Upvotes: 8

Views: 3059

Answers (1)

Zhaoxing Lu
Zhaoxing Lu

Reputation: 6467

https://blogs.msdn.microsoft.com/jmstall/2014/06/12/azure-storage-naming-rules/

The following characters are not allowed in values for the PartitionKey and RowKey properties:

  • The forward slash (/) character
  • The backslash () character
  • The number sign (#) character
  • The question mark (?) character
  • Control characters from U+0000 to U+001F, including:
    1. The horizontal tab (\t) character
    2. The linefeed (\n) character
    3. The carriage return (\r) character
  • Control characters from U+007F to U+009F

Upvotes: 12

Related Questions