Dec 21 2021 04:07 AM
I am trying to import data from a folder which has multiple excel (.xlsx) files. Each file is in the same format and has more than 100 rows. However, when trying to merge & import the file, only the first 29 rows of the files get imported. So, if I have 10 files, my combined file should actually have more than 1,000 rows of data but I have only 290. The rest of the rows don't get imported.
I am using Office 365. The link to the folder containing all the files and the combiner file which contains the query is here : https://1drv.ms/f/s!AvlXw0Bv6UpPgagb-dARACmb4gqKeA
Please help. This was working properly until last month and now I don't know why this has gone rogue.
Dec 21 2021 04:12 AM
Dec 21 2021 04:49 AM
@anidas Had a look at your query and underlying files. Downloaded two of them and connect to them in a dedicated Folder, and returned 200 rows back to Excel. See screenshot. So, there doesn't seem to be a problem with the query.
Dec 21 2021 05:01 AM - edited Dec 21 2021 05:02 AM
SolutionIn Transform Sample File query please change first step as
// Source = Excel.Workbook(Parameter1, null, true),
Source = Excel.Workbook(Parameter1, [UseHeaders = false, DelayTypes = true, InferSheetDimensions = true], null),
With InferSheetDimensions = true PQ reads actual sheet dimension, not one which is in metadata.
Dec 21 2021 06:54 AM
Worked like a charm. Thanks a lot. 🙂 You are a life saver 🙂
Although one small change - I had to make the change in the "Transform File" option and not the "Transform Sample File". But thank you once again 🙂
Dec 21 2021 06:56 AM
Dec 21 2021 09:04 AM
@anidas , you are welcome
Oct 22 2022 04:47 AM
Dec 21 2021 05:01 AM - edited Dec 21 2021 05:02 AM
SolutionIn Transform Sample File query please change first step as
// Source = Excel.Workbook(Parameter1, null, true),
Source = Excel.Workbook(Parameter1, [UseHeaders = false, DelayTypes = true, InferSheetDimensions = true], null),
With InferSheetDimensions = true PQ reads actual sheet dimension, not one which is in metadata.