[BUG] Resolve-PnPFolder: The attempted operation is prohibited because it exceeds the list view threshold.
Reporting an Issue or Missing Feature
Issue
Expected behavior
Folders created
Actual behavior

Steps to reproduce behavior
$retainRootFolder = Resolve-PnPFolder -SiteRelativePath "Shared Documents/aaaaa" -Connection $retainLocationConnection against a site with 5000+ items
What is the version of the Cmdlet module you are running?
Latest
Which operating system/environment are you running PnP PowerShell on?
- [x] Windows
- [ ] Linux
- [ ] MacOS
- [ ] Azure Cloud Shell
- [x] Azure Functions
- [ ] Other : please specify
Ah I noticed this was happening at the end of last year! Was a PnP Framework issue - wonder if this bug has been re-introduced? Here is the issue #1438 and @gautamdsheth fixed it!
This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days
Please update to the latest release 2.1.x where there have been multiple bug fixes and improvements, however you will need PS 7.2 or later as PS 5 is not supported anymore.
Feel free to reopen if the issue persists.
I have just upgraded to PowerShell 7.4 and PNP 2.2 and I am still getting the error. This is the code that gets the error Resolve-PnPFolder "Shared Documents/2040000675" if it is there it has only a few files and no folders.