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

AddListItem to SP List using MsGraph is not allowed to provide null values for fields that allow have the option "require column to have information" set to false #656

Open
3 tasks
fuzemeister opened this issue May 12, 2023 · 3 comments

Comments

@fuzemeister
Copy link

fuzemeister commented May 12, 2023

Please provide the following (and please check them off the list with [x]) before submitting this issue:

  • Expected behavior. Please provide links to the specific Microsoft Graph documentation you used to determine the expected behavior.
  • Actual behavior. Provide error codes, stack information, and a Fiddler capture of the request and response (please remove personally identifiable information before posting).
  • Steps to reproduce the behavior. Include your code, IDE versions, client library versions, and any other information that might be helpful to understand your scenario.

Expected behavior

When initializing a new list item object we provide 'null' for some fields if the source is empty or null:
image

Actual behavior

When initializing a new list item object we provide 'null' for some fields if the source is empty or null:
image

When submitting the newly created listitem to the GraphServiceClient:
image

This results in a Generic Service Exception, after investigating I realized this had to do with the field data types and there respective option to allow the field to have no content.

But since this week, it is no longer allowed to send null values using the MsGraph.

Steps to reproduce the behavior

Prepare a listitem object like in Expected Behavior.
Then try to add it using the MsGraph Core SDK

@ghost ghost added the ToTriage label May 12, 2023
@andrueastman
Copy link
Member

Thanks for raising this @fuzemeister,

Any chance you can share the SDK version you are using to make the request?

@ghost
Copy link

ghost commented May 21, 2023

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost ghost removed the no-recent-activity label May 23, 2023
@fuzemeister
Copy link
Author

@andrueastman apologies for the delay as I was out of office for a few days.

We are using:
Microsoft.Graph Version 4.5.0
Microsoft.Graph.Core Version 2.0.5

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

No branches or pull requests

2 participants