-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible regression on Import-Excel skips the first row when Headers specified #712
Comments
Thanks for reporting. Looks like a bug. |
I can't recall why we don't allow -Noheader and -HeaderName together. |
Yeah, that's not what I would expect based on how
Personally, I would much rather have to specify |
I vaguely remember originally implementing this along the lines of This is what you get when you don't add inline help or create tests :-) @ili101 also has a proposal #713 (comment) Let's think about it and come to a consensus. |
@dfinke If we change the behavior now to work like |
I was looking at a possible compromise for a breaking change. Say, to require either However, I'm finding some really bizarre behavior with Take the same Excel document,
And run
As before my first row of data is silently skipped. It's "wrong" but I understand that that was the original design. Now, watch what happens when I start incrementing
I have no idea why it starts adding blank rows, nor why it includes data from row 2 in the output when the start row is higher than row 2. The behavior of
That is, one row with empty/blank values in all columns. Alternately, no output at all (i.e., no rows returned). |
I'm not sure if this should be reported as a new issue or if I should be commenting on the closed issue, but I'm getting the same behavior reported in #417 and #427.
If I have an Excel worksheet that looks like this:
And I execute this:
I get this output:
Specifying
-StartRow 1
does not change the output.I expect to get this output:
If I use the
-NoHeader
switch instead, I get this:if I change my spreadsheet to this:
Then I get this output:
I'm using ImportExcel 6.5.1 on PowerShell 6.2.3 and PowerShell 5.1 on Windows 10 x64 Enterprise 1809. I have tried force uninstalling ImportExcel and then downloading and reinstalling it.
The text was updated successfully, but these errors were encountered: