General Exception Using List Item Patch API Endpoint

Acket, Kim (Antwerp) 0 Reputation points
2025-01-06T11:19:30.77+00:00

The endpoint : PATCH https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items/{item-id}/fields

Is not working today, we get a 'General exception while processing'. Statuscode 500

Stacktrace:

at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.<ThrowIfFailedResponseAsync>d__28.MoveNext()

at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.<SendAsync>d__20`1.MoveNext()

at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.<SendAsync>d__20`1.MoveNext()

at Microsoft.Graph.Sites.Item.Lists.Item.Items.Item.Fields.FieldsRequestBuilder.<PatchAsync>d__4.MoveNext()

We are using .NET 8 and C#

FieldValueSet provided contains key-value:

Key = Title

Value = 123

JSON representation

{

"Title": "123"

}

This has always worked, the field we try to update is available and worked perfectly.
The resource is found, we have permissions and it's not locked.

Looks like the API Endpoint is temorary down?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,033 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,721 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,028 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,175 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Yakun Huang-MSFT 8,665 Reputation points Microsoft Vendor
    2025-01-07T02:24:53.47+00:00

    Hello Acket, Kim (Antwerp),

    Thank you for reaching out to Microsoft Support!

    After testing, the endpoint works well, obviously the endpoint is not closed, the test results are as follows:

    Screenshot 2025-01-07 022113

    But your error code is 500, which seems to be a server-side error. Therefore, I suggest you open a support ticket with Microsoft Support to get help from the API owner.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.


  2. Saranya Madhu-MSFT 920 Reputation points Microsoft Vendor
    2025-01-07T03:20:49.5833333+00:00

    Hi @Acket, Kim (Antwerp),

    Thanks for reaching out to Microsoft!

    I tried to update the listitem using Graph API-PATCH https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items/{item-id}/fields

    Checked the current status and can confirm that there is no temporary downtime for this API endpoint at the moment.

    User's image

    Note: Please use only valid Column Names while executing both Operations (CREATE/PATCH).

    References:

    https://learn.microsoft.com/en-us/graph/api/listitem-update?view=graph-rest-1.0&tabs=http

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.


  3. Acket, Kim (Antwerp) 0 Reputation points
    2025-01-08T09:07:54.0733333+00:00

    After further investigation it looks like the endpoint should return a more user friendly message, instead of a General exception while processing it should return that the document needs to be checked out before you can update the meta data.

    The actual problem was that an admin had marked this Document Library as Check out required!

    ( Library Settings - Versioning Settings - Require documents to be checked out before they can be edited? => Yes)

    0 comments No comments

Your answer

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