Pnp-powershell: Version Conflict on Add-PnPListItem

Created on 1 Jun 2017  路  4Comments  路  Source: pnp/PnP-PowerShell

Notice: many issues / bugs reported are actually related to the PnP Core Library which is used behind the scenes. Consider carefully where to report an issue:

  1. Are you using Apply-SPOProvisioningTemplate or Get-SPOProvisioningTemplate? The issue is most likely related to the Provisioning Engine. The Provisioning engine is _not_ located in the PowerShell repo. Please report the issue here: https://github.com/officedev/PnP-Sites-Core/issues.
  2. Is the issue related to the cmdlet itself, its parameters, the syntax, or do you suspect it is the code of the cmdlet that is causing the issue? Then please continue reporting the issue in this repo.
  3. If you think that the functionality might be related to the underlying libraries that the cmdlet is calling (We realize that that might be difficult to determine), please first double check the code of the cmdlet, which can be found here: https://github.com/OfficeDev/PnP-PowerShell/tree/master/Commands. If related to the cmdlet, continue reporting the issue here, otherwise report the issue at https://github.com/officedev/PnP-Sites-Core/issues

Reporting an Issue or Missing Feature

Issue

Expected behavior

Return ID of updated item

Actual behavior

Add-PnPListItem : Version conflict.
image

Steps to reproduce behavior

Add-PnPListItem -List Vulnerabilities -Values @{
                        Device = 18876
                        Vulnerability = 12633
                        Title = "TBD"
                        Vuln_Identifier = "Wk8y3taE7Qe/G+jChpM/rvGtGSoWOVcH7uIxxd5oFLk="
                        Status = "New"
                        Last_x0020_Updated = "2017-05-30T11:02:34Z" 
                        }  -ContentType "Item"

Please include complete code samples in-line or linked from gists

Which version of the PnP-PowerShell Cmdlets are you using?

  • [ ] PnP PowerShell for SharePoint 2013
  • [ ] PnP PowerShell for SharePoint 2016
  • [X ] PnP PowerShell for SharePoint Online

What is the version of the Cmdlet module you are running?

2 15 1705 0
(you can retrieve this by executing Get-Module -Name *pnppowershell* -ListAvailable)

How did you install the PnP-PowerShell Cmdlets?

  • [ ] MSI Installed downloaded from GitHub
  • [ X] Installed through the PowerShell Gallery with Install-Module
  • [ ] Other means

Most helpful comment

@Didichoune There are several ways of providing feedback. This is not one of those. Realize that this code is _not_ written by Microsoft, but by volunteers like me that do _not_ work for Microsoft. If you have an issue with Microsoft, contact them directly, but do not use our issue list for venting your frustrations.

All 4 comments

@Didichoune There are several ways of providing feedback. This is not one of those. Realize that this code is _not_ written by Microsoft, but by volunteers like me that do _not_ work for Microsoft. If you have an issue with Microsoft, contact them directly, but do not use our issue list for venting your frustrations.

@Forket A few weeks ago we released an update that changes the way the listitem values are being set. Can you please check out this version? If you get the latest released build of PnP PowerShell these changes will be available to you.

Well effectively the navigation with url doesn't work (very good changes !!!). It worked before. The command Set-PnPLisItem causes errors on Azure due to the fact it consumes too much memory. I don't know or it's still a bug ( jobs stay suspended).
Volunteeers you say ? Well. I didn't know. But it's better sometimes to not update too much fastly the code before to be sure it's correct. That's my position. Good night.

navigation with url parameters

Was this page helpful?
0 / 5 - 0 ratings