[BUG] etag being ignored in batch operation #43583
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
issue-addressed
The Azure SDK team member assisting with this issue believes it to be addressed and ready to close.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Tables
Library name and version
Azure.Data.Tables 12.8.3
Describe the bug
When doing a batch operation, trying to delete x number of records, if any record does not exist I get error
Exception: Azure.Data.Tables.TableTransactionFailedException: xxx :The specified resource does not exist.
, more full stack below.I'm calling
TableClient.SubmitTransactionAsync
with a list ofTableTransactionAction
. For eachTableTransactionAction
, theTableEntity.ETag
is set to*
. I am also setting theEtag
of theTableTransactionAction
directly to*
, I would expect this to not fail if an item is missing, however it does. I did not have this issue before withMicrosoft.WindowsAzure.Storage.Table
but since switching I'm having this problem showing in production logs and can replicate locally with Azurite.I can work around this if I have to but loading the records first, but really hoping I don't need to, can you advise please.
Expected behavior
Ignore delete
TableTransactionAction
in a batch when entity does not exist but etag is *Actual behavior
Does not delete
TableTransactionAction
in a batch when entity does not exist but etag is * but throws error Azure.Data.Tables.TableTransactionFailedExceptionReproduction Steps
Call
TableClient.SubmitTransactionAsync
with a list ofTableTransactionAction
. For eachTableTransactionAction
, theTableEntity.ETag
is set to*
. Also setting theEtag
of theTableTransactionAction
directly to*
Create a list of delete options and have one or more of the items not exist
Environment
Azure Function 4, DotNet 6
The text was updated successfully, but these errors were encountered: