Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SharePoint - ShareDocument returns The type of data at position XXX is different than the one expected. #1040

Open
ZiLin3 opened this issue Jul 22, 2024 · 0 comments

Comments

@ZiLin3
Copy link

ZiLin3 commented Jul 22, 2024

I am currently using PnP.Framework version 1.16.0.0. My task involves uploading a document to SharePoint and sharing it with another user with edit permissions. However, I encounter an error: 'The type of data at position XXX is different from the expected type.' I suspect this issue is due to the latest version; this problem did not occur with version 1.15.0.0. Below is my code:

image

the error return at ClientContext.Web.ShareDocument function.

Screenshot 2024-07-22 121204

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant