[BUG] Get-PnPFolderItem with Recursive Parameter stalls
ChristophHannappel opened this issue · comments
If you have a question and are not reporting a bug, please go to:
https://github.com/pnp/pnp-powershell/discussions
Notice
Many 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-PnPProvisioningTemplate
orGet-PnPProvisioningTemplate
? 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/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 might be difficult to determine), please first double check the code of the cmdlet, which can be found here: https://github.com/pnp/PnP-PowerShell/tree/master/Commands. If related to the cmdlet, continue reporting the issue here, otherwise report the issue at https://github.com/pnp/PnP-Sites-Core/issues
Reporting an Issue or Missing Feature
Reporting an Issue
Expected behavior
Running Get-PnPFolderItem
with -Recursive
should display all Subfolders and Items inside a Folder
Actual behavior
When using the -Recursive
Parameter the Command stalls. Even if the folder which was set with -Identity
just has four files and a subfolder with 3 files.
Steps to reproduce behavior
$folder = Get-PnPFolder -Url <FolderURL>
Get-PnPFolderItem -Identity $folder -ItemType All -Recursive
Which version of the PnP-PowerShell Cmdlets are you using?
- PnP PowerShell for SharePoint 2013
- PnP PowerShell for SharePoint 2016
- PnP PowerShell for SharePoint 2019
- PnP PowerShell for SharePoint Online
What is the version of the Cmdlet module you are running?
(you can retrieve this by executing Get-Module -Name sharepointpnppowershell* -ListAvailable
)
3.26.2010.0
How did you install the PnP-PowerShell Cmdlets?
- MSI Installed downloaded from GitHub
- Installed through the PowerShell Gallery with Install-Module
- Other means