Fix Excel Cannot Refresh Data Type with Oracle ODBC Connections on VPN
Question details
The user encounters a 'Cannot Refresh Data Type' error in Excel when trying to refresh data over an Oracle ODBC connection on a VPN without internet access.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Executing a 'Refresh All' command in a workbook connected to an Oracle database via ODBC while on a private VPN network that restricts external internet access.
- Observed behavior
- Excel displays a 'Cannot Refresh Data Type' error message during the global refresh process, even though the database query completes successfully in the background.
Verify that your VPN connection is stable and that you have the correct network permissions to access the Oracle database on your private network.
Refresh ODBC Queries Individually
Bypass the internet-dependent data type check by updating each query one by one instead of using the global refresh button.
When you click 'Refresh All', Excel automatically attempts to connect to Microsoft's online services to validate linked Data Types. If your VPN restricts external internet access, this online check fails and triggers the 'Cannot Refresh Data Type' error. Refreshing specific queries individually bypasses this global validation and connects directly to your private network.
Navigate to the 'Data' tab on the Excel ribbon and click on 'Queries & Connections' to open the side pane.
Find your specific Oracle ODBC connection query in the list displayed in the right-hand pane.
Right-click the query and select 'Refresh'. Excel will now retrieve data directly from your private database without running the internet-dependent data type checks.

Check for Microsoft Office Updates
Ensure your Excel application is fully updated to rule out any known bugs associated with ODBC connections and data type validations.
Experience Hassle-Free Data Management with WPS Office
If Microsoft Excel's mandatory internet checks disrupt your offline or VPN-based database workflows, consider switching to WPS Office. It provides robust spreadsheet capabilities, seamless compatibility with Microsoft formats, and operates efficiently without forcing unnecessary online validations.
- 1. Download the Installer: Visit the official WPS website and click on 'Download WPS Office Free' to get the lightweight installer.
- 2. Install WPS Office: Run the installer and follow the quick on-screen instructions to set up the software on your device.
- 3. Open Your Spreadsheets: Launch WPS Spreadsheets and open your existing .xlsx database files directly to enjoy smooth, uninterrupted work.

Frequently Asked Questions
Why does Excel require an internet connection for Refresh All?
Excel's 'Refresh All' command often triggers background updates for linked Data Types (such as Stocks or Geography), which require an active internet connection to communicate with Microsoft servers. If you are on a closed VPN without external access, this check fails.
Can I disable the Data Type refresh check in Excel?
There is currently no native setting in Excel to disable the internet check for Data Types during a 'Refresh All' operation. The most effective workaround is to refresh the data connections individually via the Queries & Connections pane.
Did my Oracle ODBC data update successfully despite the error?
Yes, in most cases, the Oracle ODBC query connects and retrieves the latest data from your private database successfully before the error appears. The error message specifically refers to the failure of secondary online service validations, not your primary database connection.




