Number was less than the array's lower bound in the first dimension

Kumar, Ravi Ranjan 0 Reputation points

Hi Team,

I am getting Issue during unzipping the zip file in prod using Copy Data Activity in Azure Data Factory Pipeline.

Operation on target DeflateZip failed: Failure happened on 'Source' side. ErrorCode=UserErrorFailedFileOperation,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=The file operation is failed, upload file failed at path: 'filesystem/A/mytest/MyFolder/Imported/'.,Source=Microsoft.DataTransfer.Common,''Type=System.ArgumentOutOfRangeException,Message=Number was less than the array's lower bound in the first dimension. Parameter name: srcIndex,Source=mscorlib,'. Please provide the solution if you have.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,456 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AnnuKumari-MSFT 30,361 Reputation points Microsoft Employee

    Hi @Kumar, Ravi Ranjan ,

    Welcome to Microsoft Q&A platform and thanks for posting your query here.

    As per my understanding, you are facing error while trying to unzip the zipped file via copy activity in azure data factory .

    Could you please share the screenshot of copy activity configuration to let us know what compression type are you using?

    • The cause of the error could be that your zip file is compressed by the algorithm of "deflate64", while the internal zip library of Azure Data Factory only supports "deflate".
    • If the zip file is compressed by the Windows system and the overall file size exceeds a certain number, Windows will use "deflate64" by default, which is not supported in Azure Data Factory.
    • On the other hand, if the file size is smaller or you use some third party zip tools that support specifying the compress algorithm, Windows will use "deflate" by default.

    Kindly go through the following troubleshooting document : Unsupported compression causes files to be corrupted and let us know if it was helpful. In case it's not helping, kindly revert back in comment box with further update on the issue. Thanks

    Please accept the answer by clicking on Accept answer button as accepted answer helps community as well.

    0 comments No comments