Trying to Map columns dynamically withing JSON file

Pujitha Chennupati 41 Reputation points
2022-07-11T13:38:51.187+00:00

Hi,

My source is a JSON which is not formatted properly 219583-image.png

I want to assign columns[0][name] as a column name to rows[0][0], I'm trying do it through column mapping in copy data but it is throwing below error 219504-image.png 219505-image.png

Does anyone have idea on how to map them?

Thank you!

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

Accepted answer
  1. AnnuKumari-MSFT 32,736 Reputation points Microsoft Employee
    2022-07-12T16:33:10.56+00:00

    Hi @Pujitha Chennupati ,

    As I understand the ask , it seems you are trying to map JSON properties to SQL columns but its throwing error. Please correct me if I am wrong.

    In copy activity only one array can be flattened using collection reference . You can consider using DataFlow for flattening multiple arrays by using consecutive Flatten transformations.

    Click here to know more about Flatten transformations in dataflow.

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you.
      Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    1 person found this answer helpful.

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.