You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the microsoft/azure-data-factory-utilities npm package for CI/CD to my ADF. My triggers are used against pipelines that take parameters, and those parameter values contain double-quotes in them. When I run PrePostDeploymentScript.ps1, I get errors like this:
##[warning] Unable to compare 'MyTrigger' trigger payload, this is not a failure. You can post the issue to https://github.com/Azure/Azure-DataFactory/issues to check if this is user error or limitation.
##[warning] Conversion from JSON failed with error: After parsing a value an unexpected character was encountered: '. Path 'pipelines[0].parameters.Param1', line 12, position 32. from Line: 200
While these are warnings, the result is that these triggers get unnecessarily stopped and restarted because the script fails to compare them against the current definition.
Looking through PrePostDeploymentScript.ps1, I believe the issue is in the Update-TriggerTemplate function -- the final else-clause takes a value out of the ARM template parameters and uses it in a string-replace into a JSON string without escaping the double-quotes, creating malformed JSON. This then causes problems when ConvertFrom-Json is called on it.
I am using the microsoft/azure-data-factory-utilities npm package for CI/CD to my ADF. My triggers are used against pipelines that take parameters, and those parameter values contain double-quotes in them. When I run PrePostDeploymentScript.ps1, I get errors like this:
While these are warnings, the result is that these triggers get unnecessarily stopped and restarted because the script fails to compare them against the current definition.
For reference, my trigger looks like this:
The text was updated successfully, but these errors were encountered: