Trying to copy file within same Storage account causing Could not verify copy source exception

AsheNone 26 Reputation points
2022-02-15T19:00:19.057+00:00

Trying to copy file within same Storage account causing 'Could not verify copy source' exception.

I am copying using uri like below...Is there something wrong am doing here? I am using Java 11

destinationBlob.startCopy(uri);

Caused by: com.microsoft.azure.storage.StorageException: Could not verify copy source.
at com.microsoft.azure.storage.StorageException.translateException(StorageException.java:87)
at com.microsoft.azure.storage.core.StorageRequest.materializeException(StorageRequest.java:305)
at com.microsoft.azure.storage.core.ExecutionEngine.executeWithRetry(ExecutionEngine.java:196)
at com.microsoft.azure.storage.blob.CloudBlob.startCopy(CloudBlob.java:791)
at com.microsoft.azure.storage.blob.CloudBlob.startCopy(CloudBlob.java:740)
at com.microsoft.azure.storage.blob.CloudBlob.startCopy(CloudBlob.java:697)
at com.microsoft.azure.storage.blob.CloudBlob.startCopy(CloudBlob.java:660)
at com.microsoft.azure.storage.blob.CloudBlob.startCopy(CloudBlob.java:626)

I checked storage Blob logs around the same time when this occured I also see 404 'ResourceNotFound' for that particular file and this issue is occuring sporadically.

Can anyone assist on this issue please? @deherman-MSFT

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,978 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Sumarigo-MSFT 47,286 Reputation points Microsoft Employee
    2022-02-16T07:55:38.88+00:00

    @AsheNone Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    • Can you please check the access level , that would be causing the issue, Lear more here on access level
    • Make sure that the account name/key is proper

    Blob service error codes

    174718-image.png

    You can refer to this article : Copy a blob with Azure Storage client libraries

    The most easiest way to move /copy (upload, delete) the data in Azure Storage Account is Azcopy (Fast Data Transfer) and Azure storage explorer tool


  2. AsheNone 26 Reputation points
    2022-02-16T19:26:11.563+00:00

    175000-capture.jpg

    This is really useful information!

    And this issue is occuring occasionally and when this "Could not verify copy source" issue is occured I see that AuthType is set to 'Anonymous' for GetBlob operation and when this issue doesnt happen AuthType is set to "AccessKey".

    May I please know why this is occuring sporadically? @Sumarigo-MSFT @deherman-MSFT


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.