akelopes
akelopes

Reputation: 539

I can't use a Dynamic concatenation in Azure Function Name inside Data Factory pipeline

I have a concat expression defined in the Function Name setting of an Azure Function in my pipeline, where it concatenates the API Query with the current filename that I want to run on this function. When I debug the pipeline, it fails without giving me any feedback. It just says "AzureFunction failed:"

If I manually insert the string, it works fine.

the concat expression is:

@concat('HttpTrigger?filename=', variables('filename'))

I'm new to Azure, any way I can debug this?

Upvotes: 2

Views: 4072

Answers (2)

karthik kasula
karthik kasula

Reputation: 21

try this way: @concat(variables('FirstName') ,variables('LastName'))

Upvotes: 2

Jay Gong
Jay Gong

Reputation: 23782

You could use Set Variable Activity with your Azure Function Activity.

enter image description here In the Variable Activity, set the value of the variable.

enter image description here

Then refer the variable in the Azure Function Activity:

@concat('HttpTriggerJS1?name=',variables('name'))

Upvotes: 0

Related Questions