Azure Data Factory Script activity input parameter issue

Partha Das 286 Reputation points
2022-08-12T07:42:47.373+00:00

Hi,

I'm facing Azure Data Factory Script activity input parameter issue. - design - ADF_ScriptActivity.jpg

230665-adf-scriptactivity.jpg

When I triggered this activity, I got input as

===============================

{
"scripts": [
{
"parameters": [
{
"name": "tableName",
"type": "String",
"value": "Testtable",
"direction": "Input"
},
{
"name": "result",
"type": "String",
"value": null,
"direction": "Output",
"size": "300"
}
],
"type": "Query",
"text": "set @result = (SELECT * FROM @tableName FOR XML AUTO, ELEMENTS);"
}
]
}

===============================

But it failed with below error - ADF_Error.jpg
230626-adf-error.jpg

Early response is highly appreciated.

Regards,
Partha

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Nandan Hegde 36,716 Reputation points MVP Volunteer Moderator
    2022-08-12T08:03:44.853+00:00

    Hey
    It should be @{Pipeline().parameters.tableName} in your query


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.