Skip to main content

Power BI

Needs Votes

Replace Dataflow M Code (Keep Dataflow ID)

Vote (85) Share
Ada's profile image

Ada on 01 May 2020 20:56:58

Ability to fully replace entire Dataflow M code (overwrite) without creating a new Dataflow, and without having to go into each entity/query one by one. This could be done via import of .json, IF import does NOT create new Dataflow (with new Dataflow ID, which it currently does). Basically import and replace type of functionality. It would enable continued/consistent Dataflow ID and links to Datasets to remain intact.

Comments (8)
Ada's profile image Profile Picture

Scott Thomson on 30 Mar 2022 01:21:49

RE: Replace Dataflow M Code (Keep Dataflow ID)

I have determined that the REST Import Call can be used to update an existing Dataflow with json text or script, but only if that dataflow was itself first created by a REST Import call. So you would have to create a dataflow, export it, import as new and then remove the first one. However if you push this "updateable" dataflow through a pipeline it loses its ability to be updated, so back to square one. Microsoft need to allow all dataflows to be updated vi REST call.

Ada's profile image Profile Picture

Imke Feldmann on 04 Jun 2021 07:13:14

RE: Replace Dataflow M Code (Keep Dataflow ID)

As a workaround, you can use Marcus Wegeners Publish2Dataflows-tool, that exports all queries from PBI Desktop into a dataflow. There is an option that allows you to overwrite an existing dataflow: https://github.com/MarcusWegener/Export2Dataflow/blob/main/publish2dataflow.pbitool.json

Ada's profile image Profile Picture

Javier Blanco on 02 Feb 2021 16:40:17

RE: Replace Dataflow M Code (Keep Dataflow ID)

Please enable this funcionality in Power BI Service.
All objects (datasets and reports) can be replaced except dataflows. It makes no sense and the "move to prod" takes a lot of time due to this point.

Thanks in advance!

Ada's profile image Profile Picture

Arman Syzdykov on 11 Oct 2020 11:00:27

RE: Replace Dataflow M Code (Keep Dataflow ID)

Sort of a workaround while this feature is not available yet:
You can select all queries from the source dataflow (either by CTRL+click or by SHIFT+click) and just copy and paste them to a target dataflow.
You will still need to modify the parameters, but this might save you some time.

Ada's profile image Profile Picture

Salil Athalye on 25 Sep 2020 14:17:08

RE: Replace Dataflow M Code (Keep Dataflow ID)

We need the ability to have real DTAP for dataflows that have linked entities.
I have an ingestion dataflow workspace that is used by a transform dataflow workspace as linked entities, one pair for each stage in Dev / Test / Prod. Since the linked entities cannot be edited in the transform workspace, I can't parameterize the links so that they would move to point to dev / test / prod ingestion entities. Since everything seems to be captured in the same JSON file, if I import the dev JSON file into test it will require a lot of rework to reestablish all the links to point to test.

Ada's profile image Profile Picture

Michael Ferris on 27 Jul 2020 14:25:32

RE: Replace Dataflow M Code (Keep Dataflow ID)

Feels essential - we deploy the same content to multiple tenants and need to be able to get newer versions out there without having to either manually apply updates or reconfigure reports to use new dataflow IDs.

Standard DevOps activity really - can update a report by republishing over the top of the original, so why not the same for dataflows?

Ada's profile image Profile Picture

Willem on 06 Jul 2020 00:17:08

RE: Replace Dataflow M Code (Keep Dataflow ID)

Critical feature to allow for any kind of versioning

Ada's profile image Profile Picture

me ur er c on 06 Jul 2020 00:15:01

RE: Replace Dataflow M Code (Keep Dataflow ID)

I deal with this often - please enable this functionality