Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le 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

Aperta
#656 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
csharp
Ambito
api

Direzione di ricerca

Inizia riproducendo la creazione dell'elemento dell'elenco descritta con Microsoft Graph Core SDK e GraphServiceClient, impostando su null i campi facoltativi. Esamina l'eccezione generica del servizio risultante e confronta il comportamento della richiesta con la gestione prevista dei campi nullable degli elenchi SharePoint. L'attività è completata quando il comportamento è stato compreso e corretto oppure documentato chiaramente con un caso di test riproducibile.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
C#
Stelle
164
Fork
65
Merge medio
38m
PR unite (30g)
1

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoftgraph/msgraph-sdk-dotnet-core

Tutte le issue di microsoftgraph/msgraph-sdk-dotnet-core

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.