Extract Individual objects from a column in ADF

Billapati, Naveen 41 Reputation points
2021-09-15T16:42:53.287+00:00

Hello Everybody,

Does anyone know how to extract the individual objects from a single column using ADF dataflows or azure functions? In below picture you can see multiple objects such as Patching, EAM_ID, Owner..... in a single line. I want their corresponding values to be in a separate column and Patching, EAM_ID, Owner as column names.

I want it to be like this

Owner EAM_ID Patching
name1 111111 gghdgd
name2 22222 gfhgfgh

Note: those are neither JSON objects nor array's

Thanks in advance
Naveen

132491-inkedcapture-li.jpg

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

Accepted answer
  1. ShaikMaheer-MSFT 37,896 Reputation points Microsoft Employee
    2021-09-16T16:11:05.49+00:00

    Hi @Billapati, Naveen ,

    Thank you for posting query in Microsoft Q&A Platform.

    You can achieve this using Parse transformation. First you need to append { and } to your data at beginning and ending to convert it as json string using derived column transformation and then use parse transformation to parse data.

    Please check below detailed example.

    Step1: Source transformation

    132775-source.gif

    Step2: Derived Column transformation to add { and } to your data at starting and ending.
    expression used: '{' + Tags + '}'

    132689-derivedcol.gif

    Step3: Parse Transformation to parse data
    Output column type expression used: (Patching as string,EAM_ID as string,Owner as string)

    132796-parsetrans.gif

    Step4: Select Transformation to select only required columns

    132776-select.gif

    Finally you can add Sink transformation to load transformed data in to Target system.

    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

0 additional answers

Sort by: Most helpful