I am trying to run my azure function activity in adf. I am getting 500 error. I am not able to debug reason
I am trying to run my azure function activity in adf. I am getting 500 error. I am not able to debug reason
@AdityaRaj-8613 Can you confirm the flow.
ADF --> Azure function --> snowflake
When you mentioned 500 error. Are your observing the error in ADF or Azure function? Have you tested the flow from Azure function --> snowflake with the same input and are you observing the same error. If the error is coming from azure function then I will suggest you to verify application insights log for your function app to get more details on the error/exception that is causing the 500 error.
have tested that azure function locally,it is working fine. But when i am trying to run that azure function, I am getting 500 error for same input. I tried testing azure function, there in application insights ,I am seeing 500 error .
@AdityaRaj-8613 You should see the stack trace for the 500 error. If not please respond only to my private comment. As you have mentioned that it works locally but not in azure then looks like there might be configuration missing in azure that would be define in your local causing the 500 error.
@AdityaRaj-8613 Thanks for sharing the details.
As discussed your observed below error in application insights : Result: Failure Exception: ModuleNotFoundError: No module named 'yourmodulename'
To resolve the issue you have followed troubleshooting steps as mentioned here.
After adding the module in requirements.txt you were able to resolve the issue.
7 people are following this question.