Fix Disabled External Data Connections in Excel Power Query
Question details
The user needs to refresh Power Query queries that are blocked by Excel's data connection security settings.

- Product
- Microsoft Excel Power Query
- Device & OS
- not provided
- Scenario
- A workbook uses Excel.CurrentWorkbook to query tables stored in the same workbook.
- Observed behavior
- Excel reports that external data connections are disabled even though the source tables are in the current workbook.
Confirm that you trust the workbook and its source before enabling content. Check whether your organization restricts data connections or trusted locations.
Enable trusted workbook content and refresh the query
Use this approach when Excel displays a security warning for a workbook you trust.
Excel may treat Power Query queries as data connections even when Excel.CurrentWorkbook reads tables from the same file.
Open the workbook in Excel and check the message bar for a warning that data connections or content have been disabled.
If you trust the workbook and its source, select Enable Content on the security warning. If the workbook is in Protected View, review its source before selecting Enable Editing.
Go to Data > Refresh All, or open Data > Queries & Connections and refresh the affected query.

Add a trusted workbook folder to Excel's Trusted Locations
Use a trusted location when you need to work regularly with trusted files in an approved folder.
Review Excel's connection and Power Query privacy settings
Check these settings if a trusted workbook still cannot refresh or produces a separate privacy-related warning.
Work with Excel spreadsheets in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing compatible Excel files. Move everyday spreadsheet work to WPS Office while keeping Excel available for Power Query workflows; WPS does not change Excel's connection security settings.

Frequently Asked Questions
Why does Excel block a query that only uses tables in the same workbook?
Excel can classify Power Query queries as data connections even when they use Excel.CurrentWorkbook. If the workbook is trusted, check the security message bar and enable content before using Data > Refresh All.
Can I enable only internal Power Query connections?
Excel may not provide a separate security switch for internal and external Power Query sources. Review the workbook's trust status and your organization's policies before enabling content or adding a trusted location.
Where can I add a trusted location in Excel?
Go to File > Options > Trust Center > Trust Center Settings > Trusted Locations, then select Add new location. Only add an approved folder whose contents you trust.
Will changing Power Query privacy settings enable a blocked connection?
Not necessarily. Privacy settings govern how Power Query handles data sources, while connection security controls whether content can run. Review privacy settings under Data > Get Data > Query Options and check the Trust Center separately.
Can WPS Office fix Excel's disabled data connections?
No. Excel's connection security settings must be resolved in Excel or with help from your administrator. WPS Office can be used as an alternative for compatible everyday spreadsheet work.




