Getting an error stating -- One or more errors occurred. (Committed in-progress Source collection "GUID", can not be updated or deleted.)

Journaling 365 1 Reputation point
2025-11-26T06:23:03.2866667+00:00

When updating an existing search using microsoft graph beta api i am getting an error like below

---> System.AggregateException: One or more errors occurred. (Committed in-progress Source collection "GUID", can not be updated or deleted.) ---> Microsoft.Graph.Beta.Models.ODataErrors.ODataError: Committed in-progress Source collection "GUID", can not be updated or deleted.    at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken)    at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken)    at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary`2 errorMapping, CancellationToken cancellationToken)

i have provided User.read and User.Read.All Api permissions and using below endpoint for updating the search

await graphClient.Security.Cases.EdiscoveryCases["{ediscoveryCase-id}"].Searches["{ediscoverySearch-id}"].PatchAsync(null);
Microsoft Security | Microsoft Purview
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-11-26T06:23:13.73+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error you are encountering, "Committed in-progress Source collection 'GUID', cannot be updated or deleted," indicates that the source collection you are trying to update is currently in a committed state and is still in progress. This means that the operation you are attempting cannot be performed until the in-progress operation is completed.

    To resolve this issue, you can take the following steps:

    1. Check the Status: Ensure that the source collection is no longer in progress. You may need to wait until any ongoing operations are completed before attempting to update or delete the collection.
    2. Review Operations: If there are any operations that are still pending or in progress, you may need to complete or cancel them before proceeding with your update.
    3. Error Handling: Implement error handling in your code to manage such exceptions gracefully, allowing you to retry the operation after the in-progress state has changed.

    Make sure you are using the correct permissions and that your API call is structured properly, as you have indicated you are using User.Read and User.Read.All permissions. However, for operations related to eDiscovery, you may need additional permissions such as eDiscovery.Read.All or eDiscovery.ReadWrite.All depending on the specific actions you are trying to perform.

    If the problem persists, consider checking the Microsoft Graph documentation for any updates or changes regarding the handling of eDiscovery cases and searches.

    0 comments No comments

  2. Swapnesh Panchal 1,380 Reputation points Microsoft External Staff Moderator
    2025-12-04T00:57:45.3733333+00:00

    Hi @Kodie Vincent,
    Welcome to the Microsoft Q&A and thank you for posting your questions here.
    It appears you’re encountering an issue while updating an existing search using the Microsoft Graph Beta API. The error message, “Committed in-progress Source collection 'GUID' cannot be updated or deleted,” indicates that the source collection is still processing. Consider the following checks:

    1. Verify Collection Status Ensure the source collection is not in progress. Updates or deletions can only occur after the operation completes.
    2. Review Permissions While you have User.Read and User.Read.All, confirm if additional permissions are required for managing search operations or collections in your Azure environment.
    3. Consult Official Guidance Refer to [Microsoft Purview Data Map collections management https://learn.microsoft.com/en-us/purview/data-map-collections-manage-classic

    Please let us know in the comments if you have any further questions or would like to continue the discussion. We’ll be happy to assist.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.