I have a Problem with my CSV Import in Powershell. When i try to get the data that I imported I just get an empty variable as response.
CSV:
BOKNR;BOKN;AFSN;AFSK;AFAS;BOKNR+;AFCB
12340;xxxx;xxxx;xxxxxx;1;xxxx;25
12341;xxxx;xxxx;xxxxxx;1;xxxx;25
12342;xxxx;xxxx;xxxxxx;1;xxxx;25
12343;xxxx;xxxx;xxxxxx;1;xxxx;25
12344;xxxx;xxxx;xxxxxx;1;xxxx;25
12345;xxxx;xxxx;xxxxxx;1;xxxx;25
anyways When I import it and just with this command:
$csvImport = Import-CSV -Path "C:\Path\to\CSV.csv" -Delimiter ";"
It works and I get an output when I just type $csvImport. Can someone tell me how to select single columns? I have tried with $csvImport.BOKNR - but it just returns me nothing like an empty variable. What do I need to change. Any solutions are appreciated.
Your example works on my machine.