You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[BUG] When using Set-PnPListItem in batch mode "Modified" value is not getting set but the rest of the values are setting fine in the first run, we have to run the script twice to fix the issue
#4358
Open
5 tasks
AshokChava opened this issue
Sep 30, 2024
· 1 comment
Many bugs reported are actually related to the PnP Framework which is used behind the scenes. Consider carefully where to report an issue:
Are you using Invoke-PnPSiteTemplate or Get-PnPSiteTemplate? 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/pnp/pnpframework/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 might be difficult to determine), please first double check the code of the cmdlet, which can be found here: https://github.com/pnp/powershell/tree/master/src/Commands. If related to the cmdlet, continue reporting the issue here, otherwise report the issue at https://github.com/pnp/pnpframework/issues
Reporting an Issue or Missing Feature
Please confirm what it is that your reporting
Reporting a issue.
Expected behavior
Please describe what output you expect to see from the PnP PowerShell Cmdlets
We are setting following properries for the assets in onedrive/sharepoint
Using the command "Set-PnPListItem -List $ListName -Identity $itemID -Values $PropValues -batch $batch -UpdateType UpdateOverwriteVersion -Force | Out-Null"
When we run this cript for the first time except for "Modified" all the other values are set fine, to fix the "Modified" field value we have to run the script again.
Actual behavior
Please describe what you see instead. Please provide samples of output or screenshots.
We have to run the script twice.
Steps to reproduce behavior
Please include complete script or code samples in-line or linked from gists
Included in the above steps.
What is the version of the Cmdlet module you are running?
(you can retrieve this by executing Get-Module -Name "PnP.PowerShell" -ListAvailable)
2.12.0
Which operating system/environment are you running PnP PowerShell on?
[*] Windows
Linux
MacOS
Azure Cloud Shell
Azure Functions
Other : please specify
The text was updated successfully, but these errors were encountered:
Notice
Many bugs reported are actually related to the PnP Framework which is used behind the scenes. Consider carefully where to report an issue:
Invoke-PnPSiteTemplate
orGet-PnPSiteTemplate
? 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/pnp/pnpframework/issues.Reporting an Issue or Missing Feature
Please confirm what it is that your reporting
Expected behavior
Please describe what output you expect to see from the PnP PowerShell Cmdlets
"Title" = $item.Title
"Author" = $item.Author
"Editor" = $item.Editor
"Created" = $item.Created
"Modified" = $item.Modified
"Description0" = $item.Description0
"Keywords0" = $item.Keywords0
"Migration_Comments0" = $item.Migration_Comments0
}
Actual behavior
Please describe what you see instead. Please provide samples of output or screenshots.
Steps to reproduce behavior
Please include complete script or code samples in-line or linked from gists
What is the version of the Cmdlet module you are running?
(you can retrieve this by executing
Get-Module -Name "PnP.PowerShell" -ListAvailable
)Which operating system/environment are you running PnP PowerShell on?
The text was updated successfully, but these errors were encountered: