Forum Discussion
Add-PnPListItem triggers an error when used with values
Hi Deleted,
I've reproduced the error on a task list. Then I created a new custom list and I got the same issue.
Then I tried the same in a differnt tenant and it all worked fine.
The only other differnce is that I'm running PnP PowerShell froma differnt machine today. Friday I had a slightly later version of PnP. Could you try this with the March release?
Hi Pieter,
I get the same results with the February and March versions.
When I installed the January version the script worked as expected.
Maybe this is a bug introduced in the February update?
- Mar 16, 2017
Deleted,
Yes it looks like this was introduced in February. One workaround would be to run the Add-PnPListItem (without parameters) and then run Set-PnPListItem to set the properties.
- AnonymousMar 16, 2017
Thanks Pieter,
I'm going to stick with the January version of the cmdlets for now as they seem to do the job.