Find error in PowerShell scripts
Budget: $10 – $30 USD
Hi,
I need to fint the reason for the error below
PS C:\Users\Kasper Frederiksen> Get-Content C:\test.csv | `
>> ConvertFrom-Csv | `
>> Measure-Object "Amount" -Average -Sum -Maximum -Minimum
Measure-Object : The property "Amount" cannot be found in the input for any objects.
At line:3 char:1
+ Measure-Object "Amount" -Average -Sum -Maximum -Minimum
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Measure-Object], PSArgumentException
+ FullyQualifiedErrorId : GenericMeasurePropertyNotFound,Microsoft.PowerShell.Commands.MeasureObjectCommand
I need to fint the reason for the error below
PS C:\Users\Kasper Frederiksen> Get-Content C:\test.csv | `
>> ConvertFrom-Csv | `
>> Measure-Object "Amount" -Average -Sum -Maximum -Minimum
Measure-Object : The property "Amount" cannot be found in the input for any objects.
At line:3 char:1
+ Measure-Object "Amount" -Average -Sum -Maximum -Minimum
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Measure-Object], PSArgumentException
+ FullyQualifiedErrorId : GenericMeasurePropertyNotFound,Microsoft.PowerShell.Commands.MeasureObjectCommand