Forum Discussion

wherdzik's avatar
wherdzik
Helper III
2 years ago

PowerQuery Refreshing for a Long Time

I have a PowerQuery that connects to multiple excel worbooks to a sheet called PHYS in each workbook.  Just yesterday It seems that I started to encounter issues.  I am refreshing the query and its taking a long time but I also see an issue in the Transform Sample File.  Not sure what the issue is but it is taking forever to refresh the query. Does anyone know what to do in order to resolve this? Usually it take a bit to refresh but its just going on and on..

 

It looks like it starts spinning on the invoke custom function here:

 

Here are other screenshots that may or may not be helpful but please let me know if I can provide other ones to help.

 

 

 

3 Replies

  • The method you used will read the first file twice.  If you want to avoid that you can roll your own processing function to ingest the PHYS sheets from all the workbooks.

     

    From the looks of your code some of the steps can probably be combined or rearranged.

     

    You can use Query Diagnostics to find out which step takes the longest.