Sink PostgreSQL in DataFlow in Azure Data Factory // Format error

Andres Esteban 156 Reputation points
2022-04-07T15:03:25.953+00:00

Hello

From an AVRO data source I want to make a DataFlow to keep some of the AVRO data in a PostgreSQL database.

I have already managed to undo the JSON from the AVRO and put each element in a column.

191052-image.png

However, this data seems to be in array format because when I try to connect to the sink (PostgreSQL with its table already created and with all the columns matching the JSON elements) I get the following error.

191027-image.png

Does anyone know how to solve it, I understand that the array would have to be removed, if so, how could I do it?

Thank you in advance

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

1 answer

Sort by: Most helpful
  1. Andres Esteban 156 Reputation points
    2022-04-27T15:00:53.397+00:00

    First of all, I am sorry for the delay in my reply.

    To solve the problem, I decoupled the data from the arrays using Flatten and it worked for me. Thank you very much for your help

    1 person found this answer helpful.
    0 comments No comments

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.