read json file with arrays

arkiboys 9,706 Reputation points
2023-07-12T19:55:57.07+00:00

Hello,
The dataflow in the data factory pipeline has been reading a complex json file. All is fine...But recently the new requirement is to read extra information form the same json file we receive daily.
The new array to read is within an existing array...
Obviously there is an existing adtaset which has been reading the json file when the dataflow source is running.
Now to get the new array in the json file, I refresh the schema in the dataset to pull the schema with the new array. All good and the dataset reads all the data including the new array in the file...
But in the source of the dataflow (Which always has had the json setting to Document per line), I import projection but when reading the json file, it reads everything except the new array which shows the names but not values of it.
What can I do to solve this and to be able to see the values of this array in the file?

Thank you

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

Accepted answer
  1. QuantumCache 20,366 Reputation points Moderator
    2023-07-13T05:41:18.2066667+00:00

    Hello @arkiboys,

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Solution: Provided by OP @arkiboys

    Json must be in correct formatthankyou

    Previous discussion:

    User's image

    If you have any other questions or are still running into more issues, please let me know.
    Thank you again for your time and patience throughout this issue.

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    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.