Excel Power Query Wont Load All Rows

%3CLINGO-SUB%20id%3D%22lingo-sub-1744695%22%20slang%3D%22en-US%22%3EExcel%20Power%20Query%20Wont%20Load%20All%20Rows%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1744695%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20large%20file%20that%20has%2024%2C79%2C724%20rows%20of%20data%2C%20but%20Power%20Query%20loads%20only%2012%2C18%2C272%20Rows%2C%20any%20one%20knows%20how%20to%20fix%20this%3F%3C%2FP%3E%3CP%3EBelow%20screenshot%20of%20Notepad%2B%2B%20shows%20all%20the%20rows.%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AXHEu.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224124iA424E3D94311F3BF%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22AXHEu.png%22%20alt%3D%22AXHEu.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EWhile%20Power%20Query%20shows%20that%20their%20are%20only%201218272%20rows.%20I%20have%20not%20aplied%20any%20filter%2C%20you%20can%20see%20that%20in%20the%20screenshot.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%227mmVA.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224122iF62F6883BCB4DC79%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%227mmVA.png%22%20alt%3D%227mmVA.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20also%20tried%20splitting%20the%20file%2C%20still%20it%20won't%20load%20all%20rows%20of%20data.%20How%20can%20I%20retrieve%20all%20data%20with%20Power%20Query.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20help%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1744695%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1744780%22%20slang%3D%22de-DE%22%3ESubject%3A%20Excel%20Power%20Query%20Wont%20Load%20All%20Rows%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1744780%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F820138%22%20target%3D%22_blank%22%3E%40YWolf970%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3EMaybe%20this%20information%20will%20help%20you.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CH1%20id%3D%22toc-hId-556079180%22%20id%3D%22toc-hId-556079180%22%20id%3D%22toc-hId-556079180%22%20id%3D%22toc-hId-556079180%22%20id%3D%22toc-hId-556079180%22%20id%3D%22toc-hId-556079180%22%20id%3D%22toc-hId-556079180%22%20id%3D%22toc-hId-556079180%22%20id%3D%22toc-hId-556079180%22%20id%3D%22toc-hId-556079180%22%20id%3D%22toc-hId-556079180%22%20id%3D%22toc-hId-556079180%22%20id%3D%22toc-hId-556079180%22%3E%3CFONT%20size%3D%223%22%3EPower%20Query%20specifications%20and%20limits%3C%2FFONT%3E%3C%2FH1%3E%3CP%3E%3CFONT%20size%3D%223%22%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fpower-query-specifications-and-limits-5fb2807c-1b16-4257-aa5b-6793f051a9f4%3Fui%3Den-us%26amp%3Brs%3Den-us%26amp%3Bad%3Dus%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fpower-query-specifications-and-limits-5fb2807c-1b16-4257-aa5b-6793f051a9f4%3Fui%3Den-us%26amp%3Brs%3Den-us%26amp%3Bad%3Dus%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3E*%20It%20is%20always%20good%20to%20know%20which%20version%20of%20Excel%20is%20used%20and%20which%20operating%20system%20is%20used.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20be%20happy%20to%20know%20if%20I%20could%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENikolino%3C%2FP%3E%3CP%3EI%20know%20I%20don't%20know%20anything%20(Socrates)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1744964%22%20slang%3D%22en-US%22%3EBetreff%3A%20Excel%20Power%20Query%20Wont%20Load%20All%20Rows%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1744964%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%26nbsp%3Busing%20windows%2010%2064bit%20and%20office%202019.%20I%20will%20check%20out%20limitation%20link%20you%20shared%20but%20I%20don't%20think%20it's%20that%2C%20I%20have%20another%20file%20that%20has%20over%205%20million%20records%20and%20it%20reads%20it%20perfectly%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1745041%22%20slang%3D%22en-US%22%3EBetreff%3A%20Excel%20Power%20Query%20Wont%20Load%20All%20Rows%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1745041%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F820138%22%20target%3D%22_blank%22%3E%40YWolf970%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDo%20you%20know%20why%20Notepad%2B%2B%20shows%20line%201%2C218%2C272%20in%20status%20bar%20if%20you%20stay%20on%20the%20last%20line%20of%20the%20file%3F%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20776px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224154i0851C0415A220FF3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1745061%22%20slang%3D%22en-US%22%3EBetreff%3A%20Excel%20Power%20Query%20Wont%20Load%20All%20Rows%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1745061%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3Bit%20shows%201218272%20because%20it%20was%20active%20line%2C%20my%20curser%20was%20on%20this%20line.%20I%20was%20confirming%20if%20power%20query%20reads%201st%201218272%20lines%20or%20randomly%20reads%20lines.%20Turns%20out%20it%20randomly%20reads%20rows%20of%20data%20as%20line%201218272%20in%20notepad%2B%2B%20and%201218272%20in%20powerquery%20data%20load%20to%20sheet%20are%20different%20(I%20splitted%20the%20records%20at%201%20million%20rows%20so%20these%201218272%20rows%20were%20loaded%20into%202%20sheets%20within%20same%20workbook).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1745073%22%20slang%3D%22en-US%22%3EBetreff%3A%20Excel%20Power%20Query%20Wont%20Load%20All%20Rows%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1745073%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F820138%22%20target%3D%22_blank%22%3E%40YWolf970%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBut%20very%20left%20grey%20column%20in%20Notepad%2B%2B%20shows%202%20479%20724%20-%20it%20shall%20be%20the%20number%20of%20current%20row%20on%20which%20you%20stay.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1745138%22%20slang%3D%22en-US%22%3EBetreff%3A%20Excel%20Power%20Query%20Wont%20Load%20All%20Rows%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1745138%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3BI%20used%20slider%20to%20get%20to%20the%20bottom%2C%20I%20will%20update%20the%20screenshot%20as%20soon%20I%20get%20home%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1745139%22%20slang%3D%22en-US%22%3EBetreff%3A%20Excel%20Power%20Query%20Wont%20Load%20All%20Rows%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1745139%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F820138%22%20target%3D%22_blank%22%3E%40YWolf970%3C%2FA%3E%26nbsp%3BThank%20you%2C%20not%20necessary%20if%20you%20are%20sure.%20Your%20query%20is%20connection%20only%20or%20with%20loading%20to%20data%20model%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1745141%22%20slang%3D%22de-DE%22%3ESubject%3A%20Excel%20Power%20Query%20Wont%20Load%20All%20Rows%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1745141%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F820138%22%20target%3D%22_blank%22%3E%40YWolf970%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22text-wrap%20tlid-copy-target%22%3E%3CDIV%20class%3D%22result-shield-container%20tlid-copy-target%22%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3EIf%20I%20may%20point%20this%20out%20to%20you%20and%20at%20the%20same%20time%20need%20your%20help.%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22result-shield-container%20tlid-copy-target%22%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3EI%20would%20like%20to%20ask%20you%20not%20to%20post%20the%20same%20question%20in%20many%20forums%20at%20the%20same%20time.%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22result-shield-container%20tlid-copy-target%22%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3EThis%20leads%20to%20the%20fact%20that%20many%20people%20deal%20with%20your%20topic%2C%20%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22result-shield-container%20tlid-copy-target%22%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3Ewho%20could%20help%20other%20people%20at%20the%20same%20time.%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22result-shield-container%20tlid-copy-target%22%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3EBear%20in%20mind%20that%20others%20may%20also%20need%20help%20and%20everyone%20who%20helps%2C%20%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3Ehelps%20on%20a%20volunteer%20basis.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22tlid-result-transliteration-container%20result-transliteration-container%20transliteration-container%22%3E%3CDIV%20class%3D%22tlid-transliteration-content%20transliteration-content%20full%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22tlid-transliteration-content%20transliteration-content%20full%22%3E%3CA%20href%3D%22https%3A%2F%2Fstackoverflow.com%2Fquestions%2F64202606%2Fpower-query-will-not-load-all-rows%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F64202606%2Fpower-query-will-not-load-all-rows%3C%2FA%3E%3C%2FDIV%3E%3CDIV%20class%3D%22tlid-transliteration-content%20transliteration-content%20full%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22tlid-transliteration-content%20transliteration-content%20full%22%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3EThank%20you%20for%20your%20patience%20and%20understanding%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22tlid-transliteration-content%20transliteration-content%20full%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22tlid-transliteration-content%20transliteration-content%20full%22%3E%3CP%3ENikolino%3C%2FP%3E%3CP%3EI%20know%20I%20don't%20know%20anything%20(Socrates)%3C%2FP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I have a large file that has 24,79,724 rows of data, but Power Query loads only 12,18,272 Rows, any one knows how to fix this?

Below screenshot of Notepad++ shows all the rows.

 

AXHEu.png

While Power Query shows that their are only 1218272 rows. I have not aplied any filter, you can see that in the screenshot.

 

7mmVA.png

 

I have also tried splitting the file, still it won't load all rows of data. How can I retrieve all data with Power Query. 

 

I am using Windows 10 64bit and Office 2019.

 

Link to maste file: https://drive.google.com/file/d/1sd6Jq-Wpux1WPgpvO1ciZrWdjGX7x3Fe/view?usp=sharing

 

Link to excel file (you will need to change source of master file for it to work): https://drive.google.com/file/d/1JXUe4zPaHdL4MqpMoR_gvU-NQ8lMAYQe/view?usp=sharing

 

Thanks for the help

 

13 Replies

@YWolf970 

Maybe this information will help you.

Power Query specifications and limits

https://support.microsoft.com/en-us/office/power-query-specifications-and-limits-5fb2807c-1b16-4257-...

 

* It is always good to know which version of Excel is being used and which operating system is used.

 

 

I would be happy to know if I could help.

 

Nikolino

I know I don't know anything (Socrates)

@Nikolino using windows 10 64bit and office 2019. I will check out limitation link you shared but I don't think it's that, I have another file that has over 5 million records and it reads it perfectly 

@YWolf970 

Do you know why Notepad++ shows line 1,218,272 in status bar if you stay on the last line of the file?

image.png

@Sergei Baklan it shows 1218272 because it was active line, my curser was on this line. I was confirming if power query reads 1st 1218272 lines or randomly reads lines. Turns out it randomly reads rows of data as line 1218272 in notepad++ and 1218272 in powerquery data load to sheet are different (I splitted the records at 1 million rows so these 1218272 rows were loaded into 2 sheets within same workbook).

@YWolf970 

But very left grey column in Notepad++ shows 2 479 724 - it shall be the number of current row on which you stay.

@Sergei Baklan I used slider to get to the bottom, I will update the screenshot as soon I get home

@YWolf970 Thank you, not necessary if you are sure. Your query is connection only or with loading to data model?

@YWolf970 

 

If I may point this out to you and at the same time need your help.
I would like to ask you not to post the same question in many forums at the same time.
This leads to the fact that many people deal with your topic,
who could help other people at the same time.
Bear in mind that others may also need help and everyone who helps, helps on a volunteer basis.
 
 
Thank you for your patience and understanding
 

Nikolino

I know I don't know anything (Socrates)


@Sergei Baklan Its connection only and I am not loading to data model. I have another file that has about 500k records and I want to do inner join and load data to table. 

 

Attached below screenshot with last active line. I have also added link to the master file in the question. 

 

Capture.PNG

@YWolf970 

Thank you for the screenshot. I tried to play with about 2M rows text file, but with only couple of columns - PQ loads everything, into data model as well.

image.png

Thus that's not just number of rows, some combination. Did you try to clean the cache in PQ?

 

@Sergei Baklan I have, I have also tried by increasing virtual memory. 

@Nikolino 

Good News is that I have found the cause of the problem. Apparently its the m-code or you can say the fixed length definition I am using. If I remove it and import data as 1 column then it counts correct number of rows, screenshot is attached.  

 

Capture.PNG

 

Here is the code, if I remove it then Power Query counts correct rows, It will be a big help if we can fix it as I need the coumns defined by length. 

 

 

let
    Source = Csv.Document(File.Contents("C:\Users\Ali\Desktop\New folder\TaxRoll20200925\Master.dat"),41,{0, 11, 30, 33, 35, 65, 95, 125, 155, 168, 198, 223, 230, 236, 242, 246, 256, 286, 306, 326, 356, 386, 416, 446, 476, 496, 514, 524, 534, 540, 546, 556, 571, 581, 611, 626, 637, 648, 660, 672, 684, 699, 729, 739},ExtraValues.Ignore,20127)
in
    Source

 

@YWolf970 

So far so good, thanks for sharing. Bit strange for me, will try to play with that some later.