Viewing Dataflow Script in Visual Studio 2019

Jeff vG 96 Reputation points
2021-06-28T14:59:38.357+00:00

When opening large dataflows' JSON files in Visual Studio 2019, the script field is a long string with \n and \t characters, and very difficult to edit in an efficient way. How does the Azure team suggest people use Azure DevOps Repos and VS to view and edit these dataflow scripts?

https://learn.microsoft.com/en-us/azure/data-factory/data-flow-script

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,373 questions
Developer technologies Visual Studio Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA 90,641 Reputation points Moderator
    2021-06-29T10:06:36.807+00:00

    Hello @Jeff vG ,

    Thanks for the question and using MS Q&A platform.

    Generally we do view Dataflow script in Azure Data Factory portal. It is not recommended to use Azure DevOps Repos and VS to view and edit these dataflow scripts directly.

    Note: Script snippets are shareable code of Data Flow Script that you can use to share across data flows.

    An eight minute video on usage of Data Flow Scripts in ADF: https://www.microsoft.com/en-us/videoplayer/embed/RE4tA9b

    When you build a data flow script to use with PowerShell or an API, you must collapse the formatted text into a single line. You can keep tabs and newlines as escape characters. But the text must be formatted to fit inside a JSON property. There is a button on the script editor UI at the bottom that will format the script as a single line for you.

    110271-adf-dfs.gif

    If you want to view the Dataflow script in Visual Studio 2019:

    Step1: Open DataFlow Script and copy the JSON content.

    Step2: Open Visual Studio 2019 and create a new JSON file and paste the DataFlow script.

    110236-adf-dfsvs.gif

    Hope this helps. Do let us know if you any further queries.

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

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


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.