data flow flatten json file

arkiboys 9,706 Reputation points
2021-11-04T14:31:10.277+00:00

Hello,
see screenshots below
1-
I receive this error when going to data preview of the flatten activity in the dataflow.
2-
The flatten activity does not show the columns array in the dropdown of the unroll by
any suggestions?

sample json file used

{
"Title":"Demo",
"Owner":"test2",
"EntityName":"tableName",
"Columns":
[
{
"SourceColumnName":"TableID",
"ColumnType":"INT",
"SourceFormat":""
},
{
"ColumnName":"Name",
"ColumnType":"VARCHAR(50)",
"SourceFormat":""
}
]
}

146555-image.png
146489-image.png

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,625 questions
{count} votes

Accepted answer
  1. MarkKromer-MSFT 5,226 Reputation points Microsoft Employee Moderator
    2021-11-04T21:28:03.697+00:00

    Click on "Add dynamic content" next to the Unroll by field an enter an expression like this: byName('Columns')

    146683-image.png


1 additional answer

Sort by: Most helpful
  1. Atanu Das 1 Reputation point
    2022-03-12T17:30:12.907+00:00

    Do we have any update on this - facing the same issue?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.