The PnP Core SDK is a modern .NET SDK designed to work for Microsoft 365. It provides a unified object model for working with SharePoint Online and Teams which is agnostic to the underlying API's being called
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)
Category
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.Dictionary
2.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.BaseDataModel
1.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
Expected behavior
return list of available page components
Environment details (development & target environment)