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
While using PnpContext GetSiteCollectionManager().GetSiteCollectionsWithDetailsAsync(null, true) the method is throwing an exception because a site collection is not retrieved (returned 404). This happens for deleted private channel sites (still in the recycle bin) because sites are still present in the SP hidden list used by the method
Steps to reproduce
Use GetSiteCollectionManager().GetSiteCollectionsWithDetailsAsync(null, true) after private channel sites were deleted
Expected behavior
This method should not return an exception for these deleted sites and simply ignore them.
DELETE THIS LINE BEFORE SUBMITTING - Complete the following (if ignored you'll be prompted for it before we can address your issue... save the time and provide it in your initial submission).
SDK version: 1.10.0
OS: W10
SDK used in: Console App
Framework: .NET 6.0
Tooling: VS Code
Additional context
When you permanently delete the site form the recycle bin it solves the issue.
This issue is not present when using Get-PnpTenantSite -Detailed in PnP.PowerShell
Thanks for your contribution! Sharing is caring.
The text was updated successfully, but these errors were encountered:
valpvt
added a commit
to valpvt/pnpcore
that referenced
this issue
Jul 25, 2023
Category
Describe the bug
Steps to reproduce
Expected behavior
Environment details (development & target environment)
Additional context
Thanks for your contribution! Sharing is caring.
The text was updated successfully, but these errors were encountered: