Answered by:
C# program returning 400 bad request error

Question
-
From Maxim Karyonov (@MaximKaryonov) via Twitter who tweets:
“Hi. Why I can't create Table in Storage with name 54EE1EF8E0784341893835C766341E2D?”
The customer also confirmed that he was seeing a 400 bad request error and that he is using a program on c#.
Customer was sent the documentation on http://stackoverflow.com/questions/14859405/azure-table-storage-returns-400-bad-request however this did not help the customer
The customer later added that he was seeing a similar error: The specifed resource name contains invalid characters.\nRequestId:981dca87-0002-00a5-6461-ab62dd000000\nTime:2016-05-11T08:44:46.8496872Z”
As per the suggestion in the documentation, the customer was looking for code to nullify the type fields. Is this something that you may be able to advise on?
Tweet URL: Received through DM
Thanks,
@AzureSupportWednesday, May 11, 2016 10:58 AM
Answers
-
Hi,
Thank you for posting here.
Table names must conform to these rules:
•Table names must be unique within an account.
•Table names may contain only alphanumeric characters.
•Table names cannot begin with a numeric character
•Table names are case-insensitive.
•Table names must be from 3 to 63 characters long.
•Some table names are reserved, including "tables". Attempting to create a table with a reserved table name returns error code 404 (Bad Request).
These rules are also described by the regular expression "^[A-Za-z][A-Za-z0-9]{2,62}$".
Table names preserve the case with which they were created, but are case-insensitive when used.
Your table name is beginning with Numeric 54EE1EF8E0784341893835C766341E2D, Table names cannot begin with a numeric character
Regards,
Vikranth S.
Please remember to click "Mark as Answer" on the post that helps you, this can be beneficial to other community members reading the thread. And Vote as Helpful.
- Proposed as answer by vikranth s Thursday, May 12, 2016 4:36 PM
- Marked as answer by vikranth s Sunday, May 15, 2016 7:43 AM
Wednesday, May 11, 2016 4:28 PM -
Hello,
Please refer the below link for Azure storage services naming rules:
https://blogs.msdn.microsoft.com/jmstall/2014/06/12/azure-storage-naming-rules/
Regards,
Vikranth S.
Kindly click "Mark as Answer" on the post that helps you, this can be beneficial to other community members reading the thread. And Vote as Helpful.
- Proposed as answer by Lucas Araujo Tuesday, August 30, 2016 10:59 AM
- Marked as answer by vikranth s Tuesday, August 30, 2016 11:56 AM
Tuesday, August 30, 2016 8:50 AM
All replies
-
Hi,
Thank you for posting here.
Table names must conform to these rules:
•Table names must be unique within an account.
•Table names may contain only alphanumeric characters.
•Table names cannot begin with a numeric character
•Table names are case-insensitive.
•Table names must be from 3 to 63 characters long.
•Some table names are reserved, including "tables". Attempting to create a table with a reserved table name returns error code 404 (Bad Request).
These rules are also described by the regular expression "^[A-Za-z][A-Za-z0-9]{2,62}$".
Table names preserve the case with which they were created, but are case-insensitive when used.
Your table name is beginning with Numeric 54EE1EF8E0784341893835C766341E2D, Table names cannot begin with a numeric character
Regards,
Vikranth S.
Please remember to click "Mark as Answer" on the post that helps you, this can be beneficial to other community members reading the thread. And Vote as Helpful.
- Proposed as answer by vikranth s Thursday, May 12, 2016 4:36 PM
- Marked as answer by vikranth s Sunday, May 15, 2016 7:43 AM
Wednesday, May 11, 2016 4:28 PM -
Thanks a lot!Thursday, May 12, 2016 7:30 PM
-
Thanks for the answer! I was trying to use a dash, that was my problem.
Is there a document where I can find this rules?
I found the rules for Queue naming in the azure Documentation, but I couldn't find the same for Tables...
-- Microsoft Certified Professional Developer
Sunday, August 28, 2016 12:46 PM -
Hello,
Please refer the below link for Azure storage services naming rules:
https://blogs.msdn.microsoft.com/jmstall/2014/06/12/azure-storage-naming-rules/
Regards,
Vikranth S.
Kindly click "Mark as Answer" on the post that helps you, this can be beneficial to other community members reading the thread. And Vote as Helpful.
- Proposed as answer by Lucas Araujo Tuesday, August 30, 2016 10:59 AM
- Marked as answer by vikranth s Tuesday, August 30, 2016 11:56 AM
Tuesday, August 30, 2016 8:50 AM -
That's perfect!
Thanks
-- Microsoft Certified Professional Developer
Tuesday, August 30, 2016 10:59 AM