logo
search
Power Query Problems

Fix Excel Stocks Data Type Disappearing After Query Refresh

Huma Ashraf ChHuma Ashraf Ch Oct 1, 2026 869 views

Question details

The user needs to prevent an imported stock list from losing its Stocks data type conversion after every automatic Power Query refresh.

How to Fix Excel Stocks Data Type Disappearing After Query Refresh
Product
Microsoft Excel
Device & OS
not provided
Scenario
Importing stock data via a URL query, converting the column to the Stocks data type, and setting the connection to auto-refresh periodically.
Observed behavior
After each automatic query refresh, the imported column loses its Stocks data type, causing dependent formulas for beta, history, and other stock data to stop working.
Before you start

Ensure your internet connection is stable and temporarily disable the automatic query refresh to prevent the data types from continuously breaking while you troubleshoot.

Solution 1Recommended

Manually Reassign the Stock Data Source

Use the Data Selector search function to manually re-link the unlinked text back to the stock data source after a refresh.

Because Excel currently has a known limitation where it drops the background association between the imported query text and the proprietary Stocks data source during an automatic refresh, you must manually restore the link.

1
Select the broken cell

Click on the specific cell in your imported query column that has lost its Stocks data type icon.

2
Open the Data Selector

Click on the 'Search' or question mark icon that appears next to the broken data type, or click the 'Data Type' alert in the cell.

3
Re-link the stock data

Type the correct ticker symbol or company name into the Data Selector pane on the right side of your screen, then select the matching data source to restore the formulas.

Manually Reassign the Stock Data Source
Known Issue: This is a recognized behavior where Excel loses the data type association during web query refreshes. The connection must be restored manually each time it drops.
Free Microsoft Office alternative

Experience Stable Data Management with WPS Office

If recurring bugs in Excel's Power Query and proprietary data types disrupt your workflow, try WPS Office. It provides a lightweight, highly compatible spreadsheet environment for handling complex data and formulas smoothly.

Fully compatible with Microsoft Excel formats including .xlsx, .csv, and .xls.Stable environment for managing large datasets and complex financial formulas.Free and lightweight alternative without resource-heavy background connection drops.Familiar user interface ensuring seamless migration from Microsoft Office.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Excel Stocks data type disappear after a refresh?

This happens because Excel occasionally drops the background association between the imported query text and the proprietary Stocks data source during an automatic query refresh, reverting the cell back to plain text.

Can I automate the reassignment of the Stocks data type?

Currently, if Power Query drops the connection upon refresh, you cannot natively automate the reassignment using standard settings. You must manually click the Search icon in the cell to re-link the stock, or potentially use complex VBA macros to trigger the data type conversion after every refresh.

Does this issue affect other Excel linked data types?

Yes, similar auto-refresh connection drops can occasionally occur with Geography, Currencies, and other organizational linked data types imported via Power Query.

How do I stop Power Query from refreshing automatically?

Go to the Data tab, click 'Queries & Connections', right-click your active query, select 'Properties', and uncheck the 'Refresh every X minutes' option to prevent the data types from breaking continuously.