Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viva Announcement Library Result in GetPages Failed #1343

Closed
1 task done
RogerZhang-CatapultSystems opened this issue Jan 10, 2024 · 1 comment
Closed
1 task done
Assignees
Labels
area: pages API 📄 Working with modern pages bug Something isn't working

Comments

@RogerZhang-CatapultSystems

Category

  • Bug

Describe the bug

We have ViVa Enabled in root site collection, then announcement library will be automatically created.
image
When we run Get Page cmdlets, it always give us not exists error, but actually there have 13 pages
image.
After investigation I found the PnP core code logics: Based on the site pages filter expression, announcements library match it. And in line 587, if have multiple results, it will take the first one. In my scenario, the announcements will be returned, which result in can't find pages in announcement library.
image

I have tested the get pages cmdlets in PnP.Powershell module from 1.12.0 to latest, the issue always repro.

@jansenbe
Copy link
Contributor

@RogerZhang-CatapultSystems : thanks for reporting this, I've just pushed a fix. The next nightly builds of PnP Core SDK and PnP PowerShell will have this fix. I'll close the issue, but please re-open or create a new one in case you still experience issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: pages API 📄 Working with modern pages bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants