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.