[BUG]DataLakeFileClient UploadAsync function cannot execute successfully if the storage account enable soft delete feature.
See original GitHub issuebug
DataLakeFileClient UploadAsync function cannot execute successfully if the storage account enable soft delete feature.
Expected behavior
uploadAsync can execute success.
Actual behavior
exception: throw exception This endpoint does not support BlobStorageEvents or SoftDelete. Please disable these account features if you would like to use this endpoint.
stackTrace:
at Azure.Storage.Files.DataLake.PathRestClient.<CreateAsync>d__6.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Azure.Storage.Files.DataLake.DataLakePathClient.<CreateInternal>d__60.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Azure.Storage.Files.DataLake.DataLakePathClient.<CreateAsync>d__59.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Azure.Storage.Files.DataLake.DataLakeFileClient.<CreateAsync>d__19.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at ConsoleApp1.CopyData.<UploadFile>d__3.MoveNext() in C:\Users\wulei\source\repos\ConsoleApp1\ConsoleApp1\CopyData.cs:line 135
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at ConsoleApp1.Program.Main(String[] args) in C:\Users\wulei\source\repos\ConsoleApp1\ConsoleApp1\Program.cs:line 71
To Reproduce
Environment:
- Azure.Storage.Files.DataLake 12.8.0
- windows10/windows11
- Visual Studio 2019
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Enable soft delete for blobs - Azure Storage
Blob soft delete is enabled by default when you create a new storage account with the Azure portal. The setting to enable or...
Read more >Enable and manage soft delete for containers - Azure
Enable container soft delete to more easily recover your data when it is erroneously modified or deleted.
Read more >Enable Soft Delete for Azure Blob Storage
Ensure that Soft Delete feature is enabled for all your Microsoft Azure Storage blob objects (blobs and snapshots). Soft Delete enables you to...
Read more >How to recover accidental deletes in Azure Blob Storage
This article covers soft delete feature in Azure Blob Storage to recover data that is accidentally deleted in blobs or blob snapshots.
Read more >Soft delete is enabled for Azure Storage
This is to save and recover data when blobs or blob snapshots are deleted. Rationale. A user can accidentally run delete commands on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
got it! thanks~
Thanks. We are closing this issue based on your confirmation.