"Document Type" field on .docx file isn't being saved to SharePoint #1060
Unanswered
aaronmorgan
asked this question in
Q&A
Replies: 1 comment 12 replies
-
@aaronmorgan : can you try to load the relevant list information when you load |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
PnP.Core & PnP.Core.Auth, version: 1.8.38-nightly
I've got the most odd problem; a .docx file I created for testing (contains only some filler text) will not have one of it's fields set when a file in SharePoint.
In fact there's weird behaviour for Choices and Managed Metadata columns.
I upload a file like this:
...and then set properties from a dictionary like this:
If the file is a .docx the
Document_x0020_Type
column is not set, it's always null. Despite if I debug the code, the File's ListItemAllFields having the property set before the update is called.Other columns and Choice fields are set correctly.
If the file is a PDF it works just fine.
I tried using some of the other update methods, e.g.
UpdateAsync
, and that made the problem worse because then none of the Choice fields were set either.I've gone round and round on this and while other columns are working fine there's some weird interplay between the .docx file and Choice and Managed Metadata columns.
Have you seen or heard of anything like this?
What other information could I provide to help with understanding the cause?
offer_letter.docx
Thanks,
Aaron.
Beta Was this translation helpful? Give feedback.
All reactions