If multiple Enterprise Keyword columns in the same list, only first column processed, other column data erased
As explained in the title, if you have a list with multiple enterprise keyword columns set and you run the script, the first column is processed correctly but when the script process the $item.update(), data of the other enterprise keyword columns are erased.
To fix this problem, you should exchange the order of the loops of the fields and the loop of the items of the list in your script. Then only one $item.update() would be executed by list item and no data would be lost.
Regards,
Benoit Pironet