question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG]DataLakeFileClient UploadAsync function cannot execute successfully if the storage account enable soft delete feature.

See original GitHub issue

bug

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

image

Environment:

  • Azure.Storage.Files.DataLake 12.8.0
  • windows10/windows11
  • Visual Studio 2019

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
huanyingtianhecommented, Oct 15, 2021

got it! thanks~

0reactions
SaurabhSharma-MSFTcommented, Oct 15, 2021

Thanks. We are closing this issue based on your confirmation.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found