Flatten transformation not reading the array column with multiple words in column name

%3CLINGO-SUB%20id%3D%22lingo-sub-2527577%22%20slang%3D%22en-US%22%3EFlatten%20transformation%20not%20reading%20the%20array%20column%20with%20multiple%20words%20in%20column%20name%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2527577%22%20slang%3D%22en-US%22%3E%3CP%3EI%20was%20trying%20to%20split%20the%20pipe%20delimited%20string%20column%20which%20had%20a%20column%20name%20%7BBill%20Code%7D%20in%20Derived%20column%20transformation%20followed%20by%20Flatten%20transformation%2C%20Derived%20transformation%20which%20will%20split%20the%20string%20and%20convert%20it%20into%20an%20array%20and%20Flatten%20will%20convert%20them%20into%20individual%20rows.%3CBR%20%2F%3EEx%3A%20B12%7CB13%7CB14%20to%20%5B%22B12%22%2C%20%22B13%22%2C%20%22B14%22%5D%3C%2FP%3E%3CP%3EThen%20I%20passed%20this%20column%20with%20%7BBill%20Code%7D%20name%20to%20flatten%20transformation%20and%20went%20to%20data%20preview%20it%20threw%20an%20error%20%22Unroll%20value%20%7BBill%20Code%7D%20must%20be%20an%20array%22%2C%20although%20the%20bill%20code%20column%20was%20an%20array%20but%20it%20was%20not%20honoring%20it%2C%20then%20I%20had%20to%20change%20the%20column%20name%20from%20bill%20code%20to%20code%20and%20then%20the%20flatten%20transformation%20honored%20the%20column%20as%20an%20array.%3C%2FP%3E%3CP%3EConclusion%20%3A%20Flatten%20transformation%20is%20not%20honoring%20the%20array%20column%20name%20with%20multiple%20words%20separated%20by%20space%20and%20enclosed%20by%20curly%20brackets%20.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

I was trying to split the pipe delimited string column which had a column name {Bill Code} in Derived column transformation followed by Flatten transformation, Derived transformation which will split the string and convert it into an array and Flatten will convert them into individual rows.
Ex: B12|B13|B14 to ["B12", "B13", "B14"]

Then I passed this column with {Bill Code} name to flatten transformation and went to data preview it threw an error "Unroll value {Bill Code} must be an array", although the bill code column was an array but it was not honoring it, then I had to change the column name from bill code to code and then the flatten transformation honored the column as an array.

Conclusion : Flatten transformation is not honoring the array column name with multiple words separated by space and enclosed by curly brackets .

0 Replies