Import-Module Import-Excel
$q = 'SELECT * FROM [duhsheet$A3:P11]'
Invoke-ExcelQuery .\some_sheet.xlsx $q
It only returns 16x columns; it should return like 20+ columns.
If I try to access it for instance SELECT F17
it breaks with the following error:
Exception calling "Fill" with "1" argument(s): "No value given for one or more required parameters."
At C:\Program Files\WindowsPowerShell\Modules\ImportExcel\7.5.1\Public\Read-OleDbData.ps1:51 char:5
+ $null = $DataAdapter.Fill($DataTable)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : OleDbException
Does this maybe have something to do with some kind of OLEDB connection string that I am not passing to the Invoke-Query
method?