Azure DataFactory: Error while copying data from http source to ADLS Gen2
I am trying to copy the data from an http source to ADLS gen2 and I get below error:
Error: Failure happened on 'Sink' side. ErrorCode=HttpFileFailedToRead,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Failed to read data from http server. Check the error from http server:The remote server returned an error: (403) Forbidden.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.Net.WebException,Message=The remote server returned an error: (403) Forbidden.,Source=System,'
There is a foreach loop within which the copy from http to ADLS gen2 takes place. This loop works for few records but fails after some time. The configuration settings for the copy data task is as shown below:
Please let me know if there is a fix for this?