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

Bug when setting "DenyAddAndCustomizePages" on the site properties. #1592

Open
1 task done
acmurchison-il opened this issue Dec 18, 2024 · 2 comments
Open
1 task done

Comments

@acmurchison-il
Copy link

Category

  • Bug

Describe the bug

When setting the "DenyAddAndCustomizePages" on site properties, it's throwing a PnP.Core.CsomServiceException with the message "The requested operation is part of an experimental feature that is not supported in the current environment.". The value is actually set in SharePoint but we shouldn't be getting an exception returned. Potentially is a Microsoft update that is making this occur.

Both settings cause an issue:
image

Steps to reproduce

When calling the 'Update' method it throws the exception PnP.Core.CsomServiceException
image

Expected behavior

No Exception is thrown when it successfully sets in SharePoint.

Environment details (development & target environment)

  • SDK version: [Pnp.Core 1.14.0]
  • OS: Windows 11
  • SDK used in: Reproduced in Test Framework (.NET 8.0, Console Application). Also seeing in an Azure Function.
  • Framework: .NET8.0
  • Browser(s): null
  • Tooling: VS2022
  • Additional details:

Additional context

Thanks for your contribution! Sharing is caring.

@fzbm
Copy link
Contributor

fzbm commented Dec 20, 2024

We had the same issue and switched back to CSOM for this, because there it is still working. Our production environment was affected and we needed a solution for this issue fast. What we also determined is, that even if the error occurred, the state has still been changed. Nevertheless this issue should be looked into and getting fixed.

While PnP Core uses hand crafted CSOM requests for this, it looks like there is still a difference between the requests of the original library and PnP, which then triggers a different path on the server.

@ajcaterino
Copy link

ajcaterino commented Dec 20, 2024

We are also seeing the same issues when setting Site Collection properties. We set the StorageMaximumLevel and the value is not saved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants