Hi Mansi Yadav,
Thanks for reaching out to Microsoft Q&A.
The issue you're experiencing with ADF and Azure Functions, where some Function activities fail during the pipeline execution but succeed upon rerunning the pipeline, could stem from several factors related to concurrency, timeouts &transient error.
- Function Timeouts: Azure Functions have default timeouts that can cause them to fail if they take too long to execute.
- Enable and review Application Insights and function logs for detailed error messages: This can help identify specific errors or bottlenecks during the execution of your functions. Analyzing these logs can provide insights into why certain executions fail while others succeed Optimize your function code for performance and resource management.
- Consider switching to an App Service Plan for better performance consistency.
- Implement retry policies in your ADF pipeline.
- Check network connectivity and increase ADF timeout settings if necessary.
- Conduct load testing to identify and address performance bottlenecks.
Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.