Skip to content

Commit 1f7ce1a

Browse files
authored
Update data-factory-troubleshoot-guide.md
1 parent 74df27a commit 1f7ce1a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

articles/data-factory/data-factory-troubleshoot-guide.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,6 +1163,26 @@ When you observe that the activity is running much longer than your normal runs
11631163
> [!TIP]
11641164
> Actually, both [Binary format in Azure Data Factory and Synapse Analytics](format-binary.md) and [Delimited text format in Azure Data Factory and Azure Synapse Analytics](format-delimited-text.md) clearly state that the "deflate64" format is not supported in Azure Data Factory.
11651165
1166+
### Execute Pipeline passes array parameter as string to the child pipeline
1167+
1168+
**Error message:** `Operation on target ForEach1 failed: The execution of template action 'MainForEach1' failed: the result of the evaluation of 'foreach' expression '@pipeline().parameters.<parameterName>' is of type 'String'. The result must be a valid array.`
1169+
1170+
**Cause:** Even if in the Execute Pipeline you create the parameter of type array, as shown in the below image, the pipeline will fail.
1171+
1172+
:::image type="content" source="media/data-factory-troubleshoot-guide/parameter-type-array.png" alt-text="Screenshot showing the parameters of the Execute Pipeline activity.":::
1173+
1174+
This is due to the fact that the payload is passed from the parent pipeline to the child as string. We can see it when we check the input passed to the child pipeline.
1175+
1176+
:::image type="content" source="media/data-factory-troubleshoot-guide/input-type-string.png" alt-text="Screenshot showing the input type string.":::
1177+
1178+
**Recommendation:** To solve the issue we can leverage the create array function as shown in the below image.
1179+
1180+
:::image type="content" source="media/data-factory-troubleshoot-guide/create-array-function.png" alt-text="Screenshot showing how to use the create array function.":::
1181+
1182+
Then our pipeline will succeed. And we can see in the input box that the parameter passed is an array.
1183+
1184+
:::image type="content" source="media/data-factory-troubleshoot-guide/input-type-array.png" alt-text="Screenshot showing input type array.":::
1185+
11661186
## Next steps
11671187
11681188
For more troubleshooting help, try these resources:

0 commit comments

Comments
 (0)