question

Magnus-2918 avatar image
0 Votes"
Magnus-2918 asked PRADEEPCHEEKATLA-MSFT commented

Running Azure Function in Azure Data Factory with get param is not working

Hi!
I have a problem with running an Azure Function in Azure Data Factory.

The Azure function is triggered by a http request and has one GET parameter called name. In my code I do different things depending on that get parameter. At the moment I have an if clause.

199892-vsbudgetdetail.png


If I run this in Visual Studio passing in the parameter "budgetdetail" it works fine.

Then I want to call this from Azure Data Factory. If I change my code with no if clause it works fine. It runs the code perfectly from Azure Data Factory. But when I have the if clause then it just skips the if clause and finish the function with succeded.

I added get headers for my get function

199838-fetchx.png


What am I doing wrong here?

Please help!

azure-data-factoryazure-functions
vsbudgetdetail.png (86.4 KiB)
fetchx.png (28.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Magnus-2918 avatar image
1 Vote"
Magnus-2918 answered PRADEEPCHEEKATLA-MSFT commented

I solved it! Just changed GET to POST

{"name":"budgetdetail"}

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @Magnus-2918,

Glad to know that your issue has resolved. And thanks for sharing the solution, which might be beneficial to other community members reading this thread.

0 Votes 0 ·