Power Query unable to refresh the connection

Craigc3814

Board Regular
Joined
Mar 7, 2016
Messages
217
I created a tool for my company in PQ, and it is widely used across the organization now. Yesterday when I opened the file (I have it set to automatically refresh) it started giving this error

We couldn't refresh the connection 'Query - Invoice Compilation'. Here's the error message we got:

The connection could not be refreshed. We could not determine the workbook that contains this connection. Please try refreshing this connection again in a moment.

I googled the error but everyone seems to be having a different cause for the issue than me. I created this in Excel 2016, other people use Excel 2013. What can I do to fix the issue. It worked for over 2 months prior to this.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
I solved the error by copying my code in the advanced editor deleting everything, hitting refresh and allowing an error to occur, then pasting my code back in and refreshing.... No clue whats going on. The old power off power on method I guess.
 
Upvote 0
This worked for me as well... I only needed to do it for one query and then all the others refreshed afterwards (Even queries from different websites). Thank you for posting this solution.
 
Upvote 0
If it helps anymore I also found out what causes it for me, I have Excel 2016 while others I work with have 2013. If someone with 2013 opens the file and saves it, that is what causes the error for me. Apparently there is an issue with PQ essentially downgrading its functionality when the 2013 user saves it, and it cant upgrade itself back to the 2016 version (according to what I researched). If you are looking for the cause hopefully this will save you some time as well.
 
Upvote 0

Forum statistics

Threads
1,215,622
Messages
6,125,889
Members
449,270
Latest member
bergy32204

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top