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

AvailablePageComponents - A concurrent update was performed on this collection and corrupted its state #1490

Open
1 task done
DeloitteKedmiDor opened this issue Jun 25, 2024 · 1 comment
Assignees
Labels
area: pages API 📄 Working with modern pages question Further information is requested

Comments

@DeloitteKedmiDor
Copy link

DeloitteKedmiDor commented Jun 25, 2024

Category

  • Bug

Describe the bug

Using PnP.Core.Model.SharePoint.Page.AvailablePageComponents method it thrown an exception:
Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct. StackTrace: at System.Collections.Generic.Dictionary2.FindValue(TKey key) [06/25/2024 05:02:55 > 975e68: INFO] at PnP.Core.Services.BatchClient.ExecuteBatch(Batch batch) [06/25/2024 05:02:55 > 975e68: INFO] at PnP.Core.Model.BaseDataModel1.RequestAsync(ApiCall apiCall, HttpMethod method, String operationName)
[06/25/2024 05:02:55 > 975e68: INFO] at PnP.Core.Model.BaseDataModel`1.RawRequestAsync(ApiCall apiCall, HttpMethod method, String operationName)
[06/25/2024 05:02:55 > 975e68: INFO] at PnP.Core.Model.SharePoint.Page.AvailablePageComponentsAsync(String name)
[06/25/2024 05:02:55 > 975e68: INFO] at PnP.Core.Model.SharePoint.Page.AvailablePageComponents(String name)

Steps to reproduce

image

Expected behavior

return list of available page components

Environment details (development & target environment)

  • OS: [ Windows 10 ]
  • SDK used in: [ Console App ]
  • Framework: [ .NET Core v8 ]
@jansenbe
Copy link
Contributor

Hey @DeloitteKedmiDor : I'm not able to reproduce this. Does this still reproduce for you?

image

@jansenbe jansenbe self-assigned this Jul 26, 2024
@jansenbe jansenbe added question Further information is requested area: pages API 📄 Working with modern pages labels Jul 26, 2024
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 question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants