Skip to content

upload fails when the storage account is recreated #328

@arunprasathv

Description

@arunprasathv

I'm using DML to upload files to the storage account from an on-prem environment. The upload works fine, but it fails after deleting and recreating the storage account.

It works with storage explorer and powershell (Set-AzStorageBlobContent).

Stack trace

System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Azure.Storage.DataMovement.FlatDirectoryTransfer.AllTransfers(CancellationToken cancellationToken)+MoveNext()
at Microsoft.Azure.Storage.DataMovement.FlatDirectoryTransfer.EnumerateAndTransfer(TransferScheduler scheduler, CancellationToken cancellationToken)
at Microsoft.Azure.Storage.DataMovement.FlatDirectoryTransfer.<>c__DisplayClass18_0.b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at Microsoft.Azure.Storage.DataMovement.FlatDirectoryTransfer.ExecuteInternalAsync(TransferScheduler scheduler, CancellationToken cancellationToken)
at Microsoft.Azure.Storage.DataMovement.FlatDirectoryTransfer.ExecuteInternalAsync(TransferScheduler scheduler, CancellationToken cancellationToken)
at Microsoft.Azure.Storage.DataMovement.DirectoryTransfer.ExecuteAsync(TransferScheduler scheduler, CancellationToken cancellationToken)
at Microsoft.Azure.Storage.DataMovement.TransferManager.DoTransfer(Transfer transfer, TransferContext transferContext, CancellationToken cancellationToken)
at Microsoft.Azure.Storage.DataMovement.TransferManager.UploadDirectoryInternalAsync(TransferLocation sourceLocation, TransferLocation destLocation, ITransferEnumerator sourceEnumerator, UploadDirectoryOptions options, DirectoryTransferContext context, CancellationToken cancellationToken)
at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates1 shouldRetryResultPredicates, Func5 onRetryAsync, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable1 sleepDurationsEnumerable, Func4 sleepDurationProvider, Boolean continueOnCapturedContext) at Polly.AsyncPolicy1.ExecuteInternalAsync(Func`3 action, Context context, Boolean continueOnCapturedContext, CancellationToken cancellationToken)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions