I try to run this command in Azure Powershell
Set-AzDataFactoryV2Pipeline -Force -ResourceGroupName MY_DEV_RESOURCE_GRP -DataFactoryName MYADF001 -Name PL_PROCESS_API -DefinitionFile ./PL_PROCESS_API.json
Inside a PL_PROCESS_API.json file is containing this content
...{
"name": "Activity_Return",
"type": "SetVariable",
"dependsOn": [
{
"activity": "Process API data",
"dependencyConditions": [
"Succeeded"
]
}
],
"policy": {
"secureOutput": false,
"secureInput": false
},
"userProperties": [],
"typeProperties": {
"variableName": "pipelineReturnValue",
"value": [
{
"key": "strCommaSeparatedString",
"value": {
"type": "Expression",
"content": "@activity('Process API data').output.Holiday"
}
}
],
"setSystemVariable": true
}
}...
When I run this command the sections of pipelineReturnValue in type properties in ADF when the command run successfully will be like this
"typeProperties": {
"variableName": "pipelineReturnValue",
"value": "[{\"key\":\"strCommaSeparatedString\",\"value\":{\"type\":\"Expression\",\"content\":\"@length(activity('Process API data').output.Holiday)\"}}]"
}
I would like to know how to fix this?

