[BUG] New-PnPLibraryFileVersionBatchDeleteJob : Value cannot be null. (Parameter 'source')
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 904
- Forks
- 407
- Avg merge
- 9h 16m
- Merged PRs (30d)
- 10
Description
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
- Azure Functions
- Other : please specify
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing New-PnPLibraryFileVersionBatchDeleteJob in Azure Functions with PnP PowerShell 2.99.97-nightly, using the command and parameters in the report. Trace the cmdlet's handling of -Identity, version limits, and -Force to find the null source. Done means the command runs without the exception and queues the File Version Batch Delete Job.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100