Quantcast
Viewing all articles
Browse latest Browse all 168455

Re: Export and inmopt custom fields

Got the same error and i tried different formats with quotes or delimeter

First try

#$CSV = Import-CSV -Path $CSVPath #-Delimiter ";" ## Use -Delimiter if needed

$CSV = Import-CSV -Path $CSVPath  ";"

## Get all Columns in the CSV

$Properties = $CSV | Get-Member | ?{$_.MemberType -eq "NoteProperty"}

 

Second Try

#$CSV = Import-CSV -Path $CSVPath #-Delimiter ";" ## Use -Delimiter if needed

$CSV = Import-CSV -Path $CSVPath

## Get all Columns in the CSV

$Properties = $CSV | Get-Member | ?{$_.MemberType -eq "NoteProperty"}

 

 

Get-Member : No object has been specified to the get-member cmdlet.

At C:\psh\ImportATTRColumnsND.ps1:8 char:22

+ $Properties = $CSV | Get-Member | ?{$_.MemberType -eq "NoteProperty"}

+                      ~~~~~~~~~~

    + CategoryInfo          : CloseError: (:) [Get-Member], InvalidOperationException

    + FullyQualifiedErrorId : NoObjectInGetMember,Microsoft.PowerShell.Commands.GetMemberCommand


Viewing all articles
Browse latest Browse all 168455

Trending Articles



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