Saturday, March 10, 2012 1:44 AM
Is it possible to perform an entity group transaction against table storage with a delete operation using an etag of "*"?
I am trying to delete a group of records where I know the PK and RK without having to first query for them.
When I try this I get a 202 response but in the body I am seeing the following within the --batchresponse:HTTP/1.1 404 Not Found
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<message xml:lang="en-US">10:The specified resource does not exist.
Saturday, March 10, 2012 6:04 AM
Can you post what your request looks like?
Saturday, March 10, 2012 5:30 PM
Below is the first part of the request. It shows up through the first two delete operations of the batch, there are 98 more in the full request (note I changed the storage account name to protect the innocent).POST http://mystorageacct.table.core.windows.net/$batch HTTP/1.1
User-Agent: Microsoft ADO.NET Data Services
x-ms-date: Sat, 10 Mar 2012 17:21:47 GMT
Authorization: SharedKeyLite mystorageacct:cXOLYYnV5VtGRkUJR9qnwpQ1Awnwzg+Cew25Y3cT+FQ=
Content-Type: multipart/mixed; boundary=batch_659a384c-52af-4e57-9ecb-df8317f064e7
Content-Type: multipart/mixed; boundary=changeset_e7959f1a-675d-4f23-b60e-0a83ff90f2f5
DELETE http://mystorageacct.table.core.windows.net/sdkuser(PartitionKey='',RowKey='UnitTestUser0') HTTP/1.1
DELETE http://mystorageacct.table.core.windows.net/sdkuser(PartitionKey='',RowKey='UnitTestUser1') HTTP/1.1
Saturday, March 10, 2012 6:12 PM
OK, I figured out my own problem. I was including entities in the request that did not exist. My bad.
But in case anyone is interested, yes you can use Entity Group Transactions to delete multiple records without querying for them first (using etag="*").
- Marked As Answer by Curious George Saturday, March 10, 2012 6:12 PM