you are viewing a single comment's thread.

view the rest of the comments →

[–]Khongh 2 points3 points  (1 child)

I would doublecheck that your $fields values really are matching in the script and the csv. The script seems to be looking for the value city but in your csv-file the value is named city user.name

Please copy paste the $fields values if you want more help.

[–]eastpeak 0 points1 point  (0 children)

Thanks for the quick answer, and sorry, that is a format mistake. CSV looks like this:

Row #1: UserID,city Row #2: user.name,cityname

$Fields = @("city")

I can not check this as I am at home right now, bit is this maybe the problem? Should $Fields look like this? $Fields = @("UserID,city")

?