pnp / pnpcore

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
https://aka.ms/pnp/coresdk/docs
MIT License
298 stars 192 forks source link

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

Closed DeloitteKedmiDor closed 1 month ago

DeloitteKedmiDor commented 3 months ago

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.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)

jansenbe commented 2 months ago

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

image

jansenbe commented 1 month ago

Closing per no response, please re-open if still needed @DeloitteKedmiDor