powershell
powershell copied to clipboard
[BUG] New-PnPLibraryFileVersionBatchDeleteJob : Value cannot be null. (Parameter 'source')
Reporting an Issue or Missing Feature
Powershell usage for the New-PnPLibraryFileVersionBatchDeleteJob throws an error: Value cannot be null. (Parameter 'source') when running. Current testing is in Azure Function
Expected behavior
Command should run the and queue the File Version Batch Delete Job
Actual behavior
Error is being produce on the line for New-PnPLibraryFileVersionBatchDeleteJob -Identity $libraryName -MajorVersionLimit $majorLimit -MajorWithMinorVersionsLimit $minorLimit -Force Value cannot be null. (Parameter 'source')
Steps to reproduce behavior
Connect-PnPOnline -Url $siteUrl -AccessToken $AccessToken New-PnPLibraryFileVersionBatchDeleteJob -Identity $libraryName -MajorVersionLimit $majorLimit -MajorWithMinorVersionsLimit $minorLimit -Force
What is the version of the Cmdlet module you are running?
currently using the 2.99.97-nightly
Which operating system/environment are you running PnP PowerShell on?
- [ ] Windows
- [ ] Linux
- [ ] MacOS
- [ ] Azure Cloud Shell
- [x] Azure Functions
- [ ] Other : please specify