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
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
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
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:
Actual behavior
When initializing a new list item object we provide 'null' for some fields if the source is empty or null:
When submitting the newly created listitem to the GraphServiceClient:
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoftgraph/msgraph-sdk-dotnet-core
-
status:waiting-for-triage type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
status:waiting-for-triage type:bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
microsoftgraph/msgraph-sdk-dotnet-core#1047 · 3 commenti · 8 reazioni ·
-
status:waiting-for-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
microsoftgraph/msgraph-sdk-dotnet-core#1046 · 2 commenti · 2 reazioni ·
-
.NET
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
microsoftgraph/msgraph-sdk-dotnet-core#1003 · 1 assegnatario ·
Tutte le issue di microsoftgraph/msgraph-sdk-dotnet-core
Issue simili
-
effort:S P3 refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
nightscout/nocturne#1532 ·
-
core dependencies
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
C#/.NET Roslyn LSP Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Suspicious code fragments Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
DotNetNext/SqlSugar#1458 ·