Open hope4555 opened 6 years ago
Hi, I believe the issue is that the URL passed to the constructor of CloudTableClient in the second line contains the name of the table. The CloudTableClient constructor takes the base URL of the table service, i.e. "https://myaccount.table.core.windows.net". Then you can use GetTableReference to work with a specific table in the account.
Is there an online example or tutorial you were following that has the wrong URL? If so, please let me know and I will make sure it is corrected.
Ahh you are correct, without the table name the batch operation seems to work.
We have used the url with the table name for some time now (years.)
I guess that we got confused since adding a single entity (not in a batch)
(cloudTable.execute(TableOperation.insert(d3))
; is working even if the URL has the table name in it
Thanks
It's possibly a defect that it works in some cases but not others. I'll rename the issue and leave it open to track.
Been stuck on this problem as well luckily I found this thread. @mirobers Some clarification on this page(https://docs.microsoft.com/en-us/azure/cosmos-db/table-storage-how-to-use-java) would help as there isn't specific instruction to omit the TableName when doing batch operations
Trying to use a batch insert to azure table fails if using a SAS ("Shared access signature") When using account key (which is less secure i guess) it works
Example code:
this issue i think is the same for .Net. See below https://github.com/Azure/azure-storage-net/issues/584