ADF Pipeline Error:
ADF Pipeline Error 2355
What does this error mean?
The value provided for commandEnvironment is incorrect — expected an array of CmdEnvVarName=CmdEnvVarValue strings.
Common causes
- 1commandEnvironment is not an array of strings (e.g. passed as object or single string)
- 2Entries missing the '=' separator between variable name and value
- 3Duplicate variable names in the commandEnvironment list
- 4Empty variable name or value, or stray quotes/whitespace breaking the NAME=VALUE format
How to fix it
- 1Open the failing ADF activity (Custom/HDInsight/Batch) and locate the commandEnvironment property in the JSON definition.
- 2Ensure the value is a JSON array of strings, each shaped as "variableName=variableValue" (e.g. ["ENV=prod", "REGION=westeu"]).
- 3Verify that each variable name appears in the list only once — remove duplicates.
- 4Remove any entries with empty names/values or missing '=' separators, then republish the pipeline.
- 5Re-run the pipeline and confirm the activity starts past the validation phase.
Frequently asked questions
Source · learn.microsoft.com/en-us/azure/data-factory/data-factory-troubleshoot-guide#error-code-2355