PnP-PowerShell
PnP-PowerShell copied to clipboard
Add-PnPListItem Creates multiple versions
###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:###
-
Are you using
Apply-SPOProvisioningTemplate
orGet-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. - 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.
- 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
Reporting an issue. When versioning is enabled on a list, Add-PnPListItem creates two or more versions. Looking at the version history, the first time the item is created with the selected values, while the second version doesn't appear to make any changes.
Expected behavior
One version created
Actual behavior
Two versions created, kicking off any associated workflows for each
Steps to reproduce behavior
$listItemValues = @{
"Title" = 'RVA Test Unique 2';
}
add-pnplistitem -List 'Temp' -Values $listItemValues;
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.25.1804.1
How did you install the PnP-PowerShell Cmdlets?
- [ ] MSI Installed downloaded from GitHub
- [x] Installed through the PowerShell Gallery with Install-Module
- [ ] Other means
Hello All
I am facing the same issue. Add-PnPListItem creates unnecessary version while Adding items. Is there any reason or solution for this?
Hey All! Are there any updates on the issue? With the version 3.26.2010.0 still several versions are created. This can lead to elements being skipped during a Flow (Power Automate).