Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 208545

Re: Failure to import CSV with ConvertFrom-Csv

$
0
0

The Import-Csv and  ConvertFrom-Csv don't actually cause an error.  $csvreport is blank after this line of code: $csvreport=typeC:\Temp\DataGrowth.csv | ConvertFrom-Csv.  


I know that $csvreport is blank because I can see it in the powergui variables list and I also get the error listed below when I try to add additional lines to $csvreport


 

Method invocation failed because [System.Management.Automation.PSObject] doesn't contain a method named 'op_Addition'.

At H:\power cli stuff\Data_Change_Rate (With Progress Bar).ps1:39 char:15

+  $csvreport += <<<<  $clusterdetails

    + CategoryInfo          : InvalidOperation: (op_Addition:String) [], RuntimeException

    + FullyQualifiedErrorId : MethodNotFound

 

 

Oh same problem in powershell and powergui



Viewing all articles
Browse latest Browse all 208545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>