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

In OData, open collection properties are not supported #365

Closed
ghost opened this issue Jun 13, 2021 · 1 comment
Closed

In OData, open collection properties are not supported #365

ghost opened this issue Jun 13, 2021 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Jun 13, 2021

In sharepoint I have a column " Deck type" which accepts multiple choice values
To update the column value of a particular file I'm executing the below code

item = file.listItemAllFields
ctx.load(item)
ctx.execute_query()
multi_choice_value = FieldMultiChoiceValue(["Introduction"])
item.set_property("Deck_x0020_type",multi_choice_value)
item.update()
ctx.execute_query()

Upon executing this code I'm getting the below error

ClientRequestException: ('-1, Microsoft.SharePoint.Client.InvalidClientQueryException', "An open collection property 'Deck_x0020_type' was found. In OData, open collection properties are not supported."

Could anyone please tell the solution for this error?

@vgrem
Copy link
Owner

vgrem commented Jul 7, 2021

Greetings,

thank you for reporting it, it confirmed to be a bug and could be reproduced in version 2.3.4 version and related with List Item update method when entity type is incorrectly getting determined.

Has been resolved in the latest (2.3.5) version

@vgrem vgrem closed this as completed Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant