May 01 2018 11:41 PM
Hi,
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: http://www.rba.gov.au/statistics/tables/xls-hist/2014-current.xls
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.
Details:
2014-current.xls
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,
Simon
May 02 2018 01:50 AM
Hi Simon,
Could you please attach sample workbook with this error? I queried URL with Get & Transform and see no issues - attached.
May 02 2018 02:08 AM
It wasn't working in my attached file. Screenshot of the query editor below showing the error and source.
My 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 file
May 02 2018 02:14 AM
Apparently I didn't attached my file above.
It's here now.
May 02 2018 02:17 AM
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?
May 02 2018 03:23 AM
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.
May 02 2018 04:33 AM
SolutionIt looks like XML schema for your Excel is customized, perhaps that's the reason.
May 02 2018 04:38 PM
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.
Apr 15 2021 10:54 PM
Dear sir i need your help
i am used nice label software .excel file or database file not conation.
Apr 16 2021 07:22 AM
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?
Apr 27 2021 04:40 AM