66321

Azure table storage names - invalid characters

<h3>Question</h3>

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


<h3>Answer1:</h3>

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.


<h3>Answer2:</h3>

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

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.


<h3>Answer3:</h3>

I also ran into this recently. I was using the Azure CLI with Powershell and found that you cannot use variable names with the command. You also have to use quotes around the container name, and they must be lowercase.

So, for example:

$containerName = "gamers" az storage container create ` --name $containerName ` --connection-string $connectionString

Does not work but:

az storage container create ` --name 'gamers' ` --connection-string $connectionString

Does work as expected. I tried even setting up the variable to have the quotes but no luck. I hope this helps someone in the future.

来源:https://stackoverflow.com/questions/45305556/azure-table-storage-names-invalid-characters

Recommend

  • Disable then re-enable click function jQuery
  • Perl6 equivalent of Perl's 'store' or 'use Storable'
  • How do I found out which node an erlang process is running on?
  • Web api interface works locally but not on Azure
  • Release a message back to SQS
  • “Status Code: NotFound; Reason: Not Found” when creating subscription to on-premise mailbox
  • Java plugin replacement for digital signatures
  • How to call procedure in kohana 3.1
  • Footer consisting of two right triangles
  • Left join on date range by group ID
  • phonegap: is it possible to detect double touch swipe from Javascript?
  • Automatic refactoring tools? [closed]
  • How to load PDFs from Documents Directory?
  • Proper Form of API request to Blogger using Java/App Engine -error 401
  • How to scroll the horizontal scrollbar in an iFrame from the parent frame?
  • JSON.stringify() - Escaping Issue
  • Embed HTML tag in Flask WTForms field
  • Split column values into multiple columns with CREATE VIEW
  • What is the diff. between default.properties and project.properties?
  • How to make a dependent dropdown in codeigniter
  • jQuery - Prevent activation on first click
  • How to create mirrored image effect with CSS single element
  • Unable to connect to Azure MySQL Database through Azure Function - C#
  • Creating Dictionaries from Lists inside of Dictionaries
  • Reader monad - how does it conform to Monad interface?
  • Tensorflow crash using tf.train.Saver() with GPU
  • Exclude Classes from Being Included in Shaded Jar
  • Unable to start a WebView from an AsyncTask
  • C# code can't “see” the methods in my C++ dll
  • Julia 1.0 UndefVarError - Scope of Variable
  • Set WebClient.Builder.exchangeStrategies() without losing Spring Jackson configuration
  • All Event listing on specified date in Google Calender api (V3) in java?
  • How to run chrome.tabs.insertCSS from the background page on each page?
  • using maven pom while creating jar:test-jar some times it says JAR will be empty - no content was ma
  • C++ STL stack pop operation giving segmentation fault
  • Error handeling in antlr 3.0
  • Drag and drop unicode TText in DelphiXe4
  • Comma decimal separator is ignored by ASP.NET MVC model binder
  • WPF custom control and direct content support
  • ARKit code issue {unknown error -1=ffffffffffffffff error: Task failed with exit 1}