I am converting files with the Import-Excel module in Powershell with this simple code:
Import-Excel -Path $PSScriptRoot\*.xlsx | Export-Csv $PSScriptRoot\file.csv -NoTypeInformation
The problem is this file has only two columns with data:
ArticlenoandQuantity
When the quantity is 0 (zero) in the first row, the module just exports the first column to csv; the Quantity column is completely ignored.
What am I doing wrong? Why does Import-Excel not export the 0 as well?