Hey
It should be @{Pipeline().parameters.tableName} in your query
Azure Data Factory Script activity input parameter issue
Hi,
I'm facing Azure Data Factory Script activity input parameter issue. - design - 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
Early response is highly appreciated.
Regards,
Partha
Azure Data Factory
-
Nandan Hegde 36,716 Reputation points MVP Volunteer Moderator2022-08-12T08:03:44.853+00:00