Hello,
Is this issue resolved ?
We're getting this error which seems the same :
ErrorCode=AdlsGen2OperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=ADLS Gen2 operation failed for: Operation returned an invalid status code 'PreconditionFailed'. Account: 'povazudevstoragedatalake'. FileSystem: '01-brute'. Path: 'lnkHoraireChrono/2021/08/26/lnkHoraireChrono_20200402.parquet'. ErrorCode: 'LeaseLost'. Message: 'A lease ID was specified, but the lease for the resource has expired.'. RequestId: 'c04302f3-c01f-0013-6598-9a5bbe000000'. TimeStamp: 'Thu, 26 Aug 2021 16:32:59 GMT'..,Source=Microsoft.DataTransfer.ClientLibrary,''Type=Microsoft.Azure.Storage.Data.Models.ErrorSchemaException,Message=Operation returned an invalid status code 'PreconditionFailed',Source=Microsoft.DataTransfer.ClientLibrary,'", "failureType": "UserError", "target": "CPD_SQL_HoraireChrono_DL_Raw", "details": [] }
Issue while loading data in ADLS GEN2(SINK)/Extracting files from ADLS GEN2(SOURCE)

Hi Team,
I am extracting data from REST API and loading into ADLS and ADLS to SQL DB.
I am encountering the below errors:
activity flow-- copy activity(REST API to ADLS)----->copy activity(ADLS to SQL DB)
step 1- while copying data from rest api to ADLS:
Failure happened on 'Sink' side.
ErrorCode=AdlsGen2OperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=ADLS Gen2 operation failed for: Operation returned an invalid status code
'PreconditionFailed'. Account: 'testadl'. FileSystem: 'INPUT. Path: 'input test /YYYY=2020/MM=11/DD=26/customer_test_2020-11-26.json'. ErrorCode: 'LeaseLost'. Message: 'A lease ID was specified, but the lease for the resource has expired.'. RequestId: 'a9a153a7-401f-007f-739e-c4fe17000000'. TimeStamp: 'Fri, 27 Nov 2020 09:18:26
GMT'..,Source=Microsoft.DataTransfer.ClientLibrary,''Type=Microsoft.Azure.Storage.Data.Models.ErrorSchemaException,Message=Operation returned an invalid status code 'PreconditionFailed',Source=Microsoft.DataTransfer.ClientLibrary,'
step 2- while copying data from ADLS to SQL DB:
Details
Failure happened on 'Source' side. 'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=ADLS Gen2 operation failed for: Operation returned an invalid status code **'RequestedRangeNotSatisfiable'. Account: 'testadl'.
FileSystem: 'INPUT'. Path: 'input test /YYYY=2020/MM=11/DD=26/customer_testcase_2020-11-26.json'. ErrorCode: 'InvalidRange'. Message: ****'The range specified is invalid for the current size of the resource.'.** RequestId: 'aa879dc9-e01f-0097-22c1-c403ec000000'. TimeStamp: 'Fri, 27 Nov 2020 13:28:44
GMT'..,Source=Microsoft.DataTransfer.ClientLibrary,''Type=Microsoft.Azure.Storage.Data.Models.ErrorSchemaException,Message=Operation returned an invalid status code
'RequestedRangeNotSatisfiable',Source=Microsoft.DataTransfer.ClientLibrary,'
I am unable to get why those errors are generating. Could you please someone help out on this.
Thanks,
pankaj
Hi @pankaj chaturvedi ,
Welcome to Microsoft Q&A Platform. Thanks for posting the query.
The 'LeaseLost' error seems to be related to outage at ADLS side and further investigation is needed to find root cause of both the errors. Please share data factory name, region and the pipeline run ids that are failing with the above errors and I will work with product team to investigate further.
Looking forward for your response!
Hi Haritha,
Thanks for your response.
Sorry, i am unable to share ADF name, it is confidential information
pipeline run ID: b18488fd-477f-45a8-a82a-700b12b3e1d1
region :North Europe
Please let me know if you do find any solution.
Hi @pankaj chaturvedi ,
Thanks for sharing the run id and region, I will work with our team to investigate further and if we need confidential information, we will connect with you offline. I will update you as soon as I hear from the internal team.
Thanks for your patience!
Hi @pankaj chaturvedi ,
Thanks for your patience again!
For the "LeaseLost" error message, ADF product team mentioned that it is due to concurrent runs of data factory pipelines on the same source folder or file in ADLS Gen2. Please suggest if the error repeats without running any other pipeline in subscription referring to same source folder.
For the range issue, I am working with ADLS Product team and will get back to you once I hear back from them.
Sign in to comment