Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure table storage names - invalid characters

I have the following table names in Azure table storage. Table names are generated automatically in my application and then created using table.CreateIfNotExists(tableName). Some work and some don't. When I dig into the error the extended error information tells me that the resource name contains invalid characters - however I am at a loss to work out what is invalid in the failing names - can anyone spot this?

8836461cc98249bea59dc5f6790d40edstk365developmentusers

– the specified resource name contains invalid characters

8836461cc98249bea59dc5f6790d40edstk365developmenttasks

– the specified resource name contains invalid characters

af0589646af645b98f749d92a5b2ee25stk365developmentusers

– works

like image 340
Dr Adrian Colquhoun Avatar asked Jan 30 '23 22:01

Dr Adrian Colquhoun


2 Answers

Table names cannot start with a number. So your first example, starting with 8, isn't valid.

Table names are also limited to 63 characters. You haven't shown how you're generating names, but that could also be a limitation you're running into.

Full rule details are here.

like image 79
David Makogon Avatar answered Feb 02 '23 10:02

David Makogon


I was also getting this error when I was trying to upload a file to my azure blob storage.

enter image description here

My issue was that the container name I used was stating with a capital letters (Daily). Once I changed my parameter schedule value to start with small letter (daily), I started to receive the actual error, which is The specified container does not exist. as I had not created the container in my blob. After I create the container with the name daily, everything started working as expected.

enter image description here

like image 20
Sibeesh Venu Avatar answered Feb 02 '23 10:02

Sibeesh Venu