Have you ever had this error when running a pipeline in ADF or Synapse?

I have now seen this more than once and it can be frustrating to debug the issue. After trying a few different setups in Synapse I have found that the following scenarios all result in the same error:

1. An Until activity inside an If Condition
2. A nested ForEach activity
3. A parameter with “-” in the parameter name

For 1 and 2 it is not possible to create this setup using a drag and drop from the activities list, but it is possible to cut/copy and paste to create the setup mentioned above. Note in 3 all cases the pipeline is validated successfully, this shouldn’t happen in my opinion if the pipeline configuration is not valid because this results in the pipeline run error with a “null” error message.

I tested the same 3 scenarios in Fabric and in each case although the pipeline run still fails, Fabric does provide a more informative error message:

1. Operation on target If Condition failed: Container activity cannot include another container activity
2. Operation on target ForEach failed: Container activity cannot include another container activity
3. The expression ‘pipeline().parameters.Parameter-Name’ is not valid: the string character ‘N’ at position ’32’ is not expected.

There are most likely other scenarios or setups that will result in the same outcome, if this happens then the best thing to do is double check everything is configured correctly and check the pipeline setup is valid. At least in Fabric it is easier to identify the root cause!

Tags: , ,