azure data flow I cant pass json string to the sink

youssef125 271 Reputation points
2021-12-05T10:57:13.31+00:00

I'm using azure data factory to transform data, I have a derived column to process images.

iif(isNull(column1_images),
iif(isNull(column2_images),
iif(isNull(images),'N/A',toString(images))
,concat(toString(column12_images),' ','(',column2_type,')')),
concat(toString(column1_images),' ','(',column1_type,')'))
when I click on refresh buton I can see the result :
155083-capture-decran-2021-12-05-a-115054.png

but when I pass this column to the sink I'M GETTING THIS ERROR :

Conversion from StringType to ArrayType(StructType(StructField(url,StringType,true)),false) not defined

can you tell me what is the problem please ?

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

Accepted answer
  1. Mark Kromer MSFT 1,146 Reputation points
    2021-12-06T23:18:47.393+00:00

    If just want to send a string instead of a JSON array, you'll need to Flatten the array first, then Stringify the JSON structure.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.