C# Graph Beta API: "generalException" when updating SharePoint Hyperlink (URL) field

Mark Dicks 640 Reputation points
2025-06-09T05:02:42.98+00:00

I'm using Microsoft Graph SDK to update a SharePoint list item, and I consistently get a ServiceException with the error:

Code: generalException  
Message: General exception while processing  

I'm 100% sure the issue is related to a Hyperlink column named PDFDocument.

What I'm Doing:

I'm building a FieldValueSet and setting the values like this in C#:

fVS.AdditionalData["PDFDocument"] = $"{link}, {ecrText}";

Where:

  • link is a valid SharePoint document URL
  • ecrText is a short string like "TQ_010"
  • The PDFDocument column in the SharePoint list is of type Hyperlink (URL). I also verified that "PDFDocument" is the correct internal name of the field.

What I Tried:

Updating only the PDFDocument field (no other fields)

Verified the value is in the format: "url, description"

Ensured the list ID, item ID, and all context values are correct

Other fields (like Title or Status) update fine

What I Need Help With:

Is there a different expected format for hyperlink fields via Microsoft Graph?

Are there known issues with FieldValueSet and SharePoint URL fields?

Any workarounds or alternative approaches (my goal is to link a pdf document or preview it in the list)

Thanks in advanced for anyone who tries to help.

Microsoft Security Microsoft Graph
{count} votes

Accepted answer
  1. Aashutosh Tiwari - MSFT 435 Reputation points Microsoft External Staff
    2025-06-10T09:00:24.59+00:00

    As of now, Graph API does not fully support updating these column types directly. However, you might need to use SharePoint REST API as a workaround. Here is a similar issue with yours to reference

    https://sharepoint.stackexchange.com/questions/88540/how-do-i-update-a-hyperlink-field-using-the-rest-api

    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

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Aashutosh Tiwari - MSFT 435 Reputation points Microsoft External Staff
    2025-06-09T09:08:46.2633333+00:00

    Hi @Mark Dicks

    Thanks for posting question on Microsoft Forum

    Can you please try v1.0 version of Microsoft Graph as beta version is still in its testing stages and is yet to enter in fully production stage ?

    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


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.