August 21, 2019
Hi,
lately after using Excel 2019, encounter more this type of error when running power query
"Something went wrong. If the problem continues, please restart excel’, and when copy out the error message is as in the thread below
https://answers.microsoft.com/.....c06907f1aa
what is the issue and how to resolve it
thank you !
October 5, 2010
Hi Chris,
The topic title says 'when updating Power Query' - but the link is talking about connecting a query to the data model.
So how exactly is this problem being generated for you?
Have you tried deleting the Power Query cache on your hard disk?
Delete all files in this folder C:\Users\USER\AppData\Local\Microsoft\Power Query\Cache
Change USER to your username.
Backup the files before deleting - just in case.
Regards
Phil
August 21, 2019
Hi Phil,
I was attempting to bring in one workbook consists of 25 worksheets (same structure), after that I did a append as new query, then close and load to, then encounter unexpected error, I copy out the copy details which is similar to the link that I attached
Previously the same process done in Excel 2016 got no issue, lately change my laptop and loaded with Excel 2019 (not sure whether this is the cause)
btw, remove the cache and re-run the query and still encounter the same error
August 21, 2019
Hi Phil
yes I am using on premises excel 2019, I got 24 worksheets and they are all formatted as tables, when I bring into a blank workbook using edit directly in power query editor, then straight away append as new, all error in editor at all managed to append all the 24 tables together, it was when I close and load to, it prompted me the generic error of unexpected error, and when i click close, in the worksheet query, all the 24 queries and 1 appended query are not in connection only mode, of course if I one-by-one right click load to, it works
just puzzle what is wrong with it
the datasets I got to mask further before sending to you, I even create the workbook from scratch and same error
I am using 64 bit, is there a different
thank you for your response phil
October 5, 2010
Hi Chris,
you say you have 24 queries to load the 24 tables from 24 sheets. These are all from the same workbook, or different workbooks?
You say that you also have 1 appended query, what is this doing? If you leave this out, can you load to the data model?
What happens if you Close and Load To a new sheet, then create a new query and load that able into the data model. Just curious if that works.
Not sure what you mean by 'on premises' Excel 2019. Excel 2019 is a standalone product to Office 365. Excel 2019 will not receive updates like O365. I ask because your issue may be related to Excel 2019 if that is what you are using.
You can have 32 bit or 64 bit Excel.
Phil
August 21, 2019
Hi Phil
On-Premise means local installed, ok, basically there are 24 worksheets (same structure) in one workbook (same workbook), what I wanted to do is import all these two worksheet into PQ as 24 queries, then Append all of them as one, very simple. whether I import in and straight away close and load to, or Append all of them into one single query and close and load to, the unexpected error still appear
just try Close and load to, expect all the 24 queries to load to excel but I still receive Unexpected Error
Phil, thanks for your time, will explore other alternative, just puzzle the same source file I did the same in Excel 2016 got no problem at all
I will update you once there is findings
Thank you Sir
July 16, 2010
Hi Chris,
Please try using =Excel.CurrentWorkbook() to get all of the sheets in one go, as explained here: https://www.myonlinetraininghu.....cel-sheets
Let us know if you're still getting the problem.
Mynda
Answers Post
August 21, 2019
Hi Mynda, Phil,
Thanks for all the advises, I really appreciate.
after so many investigation and I found out it was due to backend Office 2019 patches 16.0.10359.20023 didn't apply properly in my laptop, this morning I re-install again and everything back to normal. Yah!
anyway I was attempting to demonstrate to my colleagues two methods of appending multiple worksheets using UI, i.e. Get Data > from Excel and using mouse to select all the 24 worksheets into PQ, then append as new, the timing will be about 3-5 mins vs using M code Excel.WorkBook () or Excel.CurrentWorkbook(), which a lot of users won't dare to venture into it, it is a matter of getting use to it, understand the coding algorithm
Cheers !!!
August 21, 2019
Hi Mynda
one more query, after using
Excel.Workbook(File.Contents("D:\usersp\....................\XXXXX.xlsx"),null, true), the speed is really split of second and I just need to expand each worksheet table and promote one of the header, then filter off all the other 23 unwanted headers
However I noticed there were 3000-4000 blank records generated below the last records, I went to the source file and physically check and there is no blank there, of course I can apply a step removed blank rows, just wanted to know the root cause
Thank you !
August 21, 2019
Hi Mynda,
found out the cause, as these 24 worksheets consists of two sets of datasets, one is table (each of the range cell format as table and the table name same as the worksheet name), so if use Excel.Workbook(File.Contents("D:\usersp\....................\XXXXX.xlsx"),null, true), somehow probably it can't read the table attributes and return as blank rows ( 6000 over records), and the actual combine records only 3700.
so I convert back all the tables to range and refresh again then it is ok
I didn't rename these 24 tables to other names
for your information
July 16, 2010
Hi Chris,
Yes, you're supposed to use the filters before combining to exclude the Sheets and only get the Tables, otherwise your data is double counted. I cover all of these important steps in my Power Query course. I do hope you'll consider taking it as it answers many of the questions you've posted in our forum and it will help you get up to speed quickly.
Mynda
1 Guest(s)