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

Mark Dicks 640 Reputation points
2025-06-05T07:36:56.3433333+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 365 and Office | SharePoint | Development
0 comments No comments
{count} vote

Accepted answer
  1. Jack-Bu 2,220 Reputation points Microsoft External Staff Moderator
    2025-06-05T12:00:40.1833333+00:00

    Hi Mark Dicks, 

    We understand your concern, as the inquiries you provided, we might not have enough data to troubleshoot it effectively. Could you send more additional information to assist you better via "Private Message": 

    1. What version of SharePoint are you using?   
    2. Could you send me entire the script in so we can have a look and try to fix it for you? 

    If you feel uncertain about the privacy and security related to your business when sending the entire script in the Q&A forum, we would like to suggest you raising a ticket with Microsoft Support. They have the required resources and in-depth backend knowledge to resolve this issue more efficiently and faster. As forum moderators, we do not have the necessary testing environment to effectively handle this request so it may take a long time to troubleshoot it. 

    If you need to raise ticket, you can go to Microsoft 365 admin center and click "Help & support" icon to raise your ticket. User's image

    User's image

    If you need further assistance, please let us know.  


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

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread


1 additional answer

Sort by: Most helpful
  1. Mark Dicks 640 Reputation points
    2025-06-09T11:07:30.9733333+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

    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.