Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#656 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
csharp
Lĩnh vực
api

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện việc tạo mục danh sách được mô tả bằng Microsoft Graph Core SDK và GraphServiceClient, với các trường tùy chọn được đặt thành null. Xem xét ngoại lệ dịch vụ chung phát sinh và so sánh hành vi của yêu cầu với cách xử lý dự kiến đối với các trường danh sách nullable của SharePoint. Công việc được xem là hoàn tất khi hành vi đã được hiểu và либо được sửa hoặc được ghi chép rõ ràng bằng một trường hợp kiểm thử có thể tái hiện.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Needs: Attention :wave:

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

Ngôn ngữ chính
C#
Star
163
Fork
65
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoftgraph/msgraph-sdk-dotnet-core

Tất cả issue của microsoftgraph/msgraph-sdk-dotnet-core

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.