Hi @VishalV ,
Welcome to Microsoft Q&A platform and thanks for posting your question here.
As per my understanding , you want to replace one string with another using data transformation in mapping Dataflow . Please let me know if my understanding is incorrect.
You can try the following approach :
- Upload the .json file into ADLS and create a dataset with .json format and use the same in source transformation. Make sure to select
Array of documents
option in JSON settings of Source options tab. - Use Flatten transformation to convert items of array into individual rows. Select schools[] array in unroll by option and select the input columns
- Use derived column transformation to replace one string with another for all the relevant columns.
- Add surrogate key column to add a dummy incremental column
- Use Aggregate transformation to again group the columns into array by using collect function and grouping using identity column.
- Use select transformation to remove the unwanted identity column
- Use sink transformation to load the data again into .json file. In the sink setting, Select 'Output to single file' in FileName Option and set Single partition when pop up arrives. Provide outputFileName and run the pipeline.
Please refer to the following video:
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on
or upvote
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