Excel web query DataFormat.Error "not a valid path"

Occasional Contributor



I have a workbook that grabs data from a few online Excel workbooks. This was working fine from when I set it up about six months ago until recently, when it started producing a DataFormat.Error.


One of the data sources that my workbook queries is the Reserve Bank of Australia exchange rates in this file:


This is the error that I get:

 DataFormat.Error: 'C:\statistics\tables\xls-hist\2014-current.xls' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.


This used to work just fine with no errors. I've tried on multiple computers with the same issue, and I've tried three other links to publicly available online excel workbooks with the same issue. I've tried adding a new query (by selecting query from workbook or query from web) in a fresh workbook and pasting that link as the source, but I still get the same error.


It's weird that the error is referring to a file at C:\ and not the URL that I entered. 


I'm using MS Office Professional Plus 2016, Excel version 16.0.4266.1001 64 bit. 


Does anyone know how to get around this issue?


Thanks in advance, 



10 Replies

Hi Simon,


Could you please attach sample workbook with this error? I queried URL with Get & Transform and see no issues - attached.

It wasn't working in my attached file. Screenshot of the query editor below showing the error and source.

My fileMy file

When I opened your file and refreshed the query I got the same error again! See screenshot below, after trying to refresh the query.   

Sergei's fileSergei's file




Apparently I didn't attached my file above. 

It's here now.

I also asked a colleague to try from their PC - same issue when starting from scratch and using just the link I provided above from Get & Transform. 

Perhaps it's an issue with our organisation's systems? 

Simon, with your file I have this error


Clicking Ok couple of time after that and file refreshes correctly.


If I copy/paste your query into new workbook - no issues at all. Something is wrong with Excel itself, not with query. So far have no idea what's that.

best response confirmed by Simon Pearce (Occasional Contributor)

It looks like XML schema for your Excel is customized, perhaps that's the reason.

OK, thanks. 


I've found 2 things:

1) In my exiting workbook that used to work fine: If click connections, properties, definitions tab and then browse for a new connection file I can add the URL there and it successfully connects. The connection is already set to insert the data into a specific worksheet from an existing query. The query itself won't refresh (encounters the error above). If I delete the query the connection remains, and I can refresh the connection instead of refreshing a query. 

This seems to get me out of trouble for this specific application in this workbook. 


2) Any new workbooks continue to have the problem above. I can't seem to get a new connection to add data to a worksheet, and I can't get queries to successfully access this (or other) URLs that link to .xls files. 


I'll ask my company IT guys if there's anything that's changed in our Excel setup over the past few months and we'll go from there! 


Thank you again for your help, Sergei. 

@Sergei Baklan 

Dear sir i need your help 

i am used nice label software .excel file or database file not conation.


I'm not sure how may I help, MS Access can't find the file in your Desktop folder. If check by File Explorer are you sure the file is still at this folder?

My Skype name mdalifmondol
I many many try this problem face
but this problem are not solve
can you help me I need a software to this problem solve