Skip to content

Commit f84331e

Browse files
authored
Live publish
2 parents 55df745 + cbc4b8d commit f84331e

File tree

9 files changed

+71
-0
lines changed

9 files changed

+71
-0
lines changed

powerquery-docs/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
href: connecting-to-graph.md
1717
- name: "Connectivity without an existing connector"
1818
href: connector-alternatives.md
19+
- name: "Change a dataflow gateway"
20+
href: change-gateway-dataflow.md
1921
- name: Transform data
2022
items:
2123
- name: "Use Power Query to transform data"
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
---
2+
title: Change the gateway used in a dataflow project
3+
description: An article that describes how to change the data gateway in Power Query Online dataflow projects.
4+
author: ptyx507
5+
ms.service: powerquery
6+
ms.date: 12/6/2021
7+
ms.author: dougklo
8+
ms.reviewer: dougklo
9+
---
10+
# Change the gateway used in a dataflow project
11+
12+
When creating a new dataflow project in Power Query Online, you can select the on-premises data gateway used for your specific data sources during the get data experience. This article showcases how you can modify or assign a gateway to an existing dataflow project.
13+
14+
>[!NOTE]
15+
>Before being able to change a gateway, make sure that you have the needed gateways already registered under your tenant and with access for the authors of the dataflow project. You can learn more about data gateways from [Using an on-premises data gateway in Power Platform dataflows](dataflows/using-dataflows-with-on-premises-data.md).
16+
17+
## Changing the gateway
18+
19+
To showcase how to change the gateway in a dataflow project, this article uses a query that connects to a local folder as an example.
20+
21+
This query previously used a gateway named "Gateway A" to connect to the folder. But "Gateway A" no longer has access to the folder due to new company policies. A new gateway named "Gateway B" has been registered and now has access to the folder that the query requires. The goal is to change the gateway used in this dataflow project so it uses the new "Gateway B".
22+
23+
![Image with a query that has an error message related to the data gateway being unreachable or offline.](media\change-gateway\gateway-error.png)
24+
25+
To change the gateway:
26+
27+
1. From the **Home** tab in Power Query, select **Options**.
28+
2. From the drop-down menu, select **Project Options**.
29+
30+
![Drop-down menu found in the Options button inside the Power Query Home tab with the Project options button emphasized.](media\change-gateway\project-options.png)
31+
32+
3. In the **Project options** dialog box, select the gateway to use for your project, in this case, Gateway B.
33+
34+
![Image of Project options dialog box with the drop-down menu listing None, Gateway A, and Gateway B.](media\change-gateway\project-options-dialog-change-gateway.png)
35+
36+
>[!Tip]
37+
>If there were recent changes to your gateways, select the small refresh icon to the right of the drop-down menu to update the list of available gateways.
38+
39+
4. After selecting the correct gateway for the project, in this case Gateway B, select **OK** to go back to the Power Query editor.
40+
41+
## Validate your data source path
42+
43+
After changing your data gateway, we recommended that you check your data source paths to make sure that your queries are connecting to your data sources as expected.
44+
45+
>[!Note]
46+
>The M engine identifies a data source using a combination of its *kind* and *path*.
47+
>
48+
>The kind defines what connector or data source function is being used, such as SQL Server, folder, Excel workbook, or others.
49+
>
50+
>The path value is derived from the required parameters of your data source function and, for this example, that would be the folder path.
51+
52+
The best way to validate the data source path is to go into the query where your data source function is being used and check the parameters being used for it. For this example, there's only one query that connects to a folder and this query has the **Source** step with the data source path defined in it. You can double-click the **Source** step to get the dialog that indicates the parameters used for your data source function. Make sure that the folder path, or the correct parameters for your data source function, is the correct one in relation to the gateway being used.
53+
54+
![Image of the results of double-clicking the Source in the Power Query Query settings pane, with the Folder path shown from the example in this article.](media\change-gateway\data-source-path.png)
55+
56+
## Modify authentication
57+
58+
To modify the credentials used against your data source, select **Get data** in the Power Query editor ribbon to launch the **Choose data source** dialog box, then define a new or existing connection to your data source. For the purpose of this example, the connector that's' used is the Folder connector.
59+
60+
![Choose data source dialog with the folder connector emphasized.](media\change-gateway\choose-data-source.png)
61+
62+
Once in **Connection settings**, create a new connection or select or modify a different connection for your data source.
63+
64+
![Connection settings dialog for the Folder connector.](media\change-gateway\folder-connection-settings.png)
65+
66+
After defining the connection details, select **Next** at the bottom-right corner and validate that your query is loading in the Power Query editor.
67+
68+
>[!NOTE]
69+
>This process is the same as if you were to connect again to your data source. But by doing the process again, you're effectively re-defining what authentication method and credentials to use against your data source.
126 KB
Loading
44 KB
Loading
34 KB
Loading
105 KB
Loading
87.6 KB
Loading
83.8 KB
Loading
49.6 KB
Loading

0 commit comments

Comments
 (0)