Fix Excel Stocks Data Type Disappearing After Query Refresh
Question details
The user needs to prevent an imported stock list from losing its Stocks data type conversion after every automatic Power 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.
Ensure your internet connection is stable and temporarily disable the automatic query refresh to prevent the data types from continuously breaking while you troubleshoot.
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.
Click on the specific cell in your imported query column that has lost its Stocks data type icon.
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.
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.

Report the Issue via Excel Feedback
Since this is a reproducible product bug, submitting detailed feedback can help Microsoft developers issue a permanent patch.
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.

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.




