Open AlanPBourke opened 1 day ago
FWIW, doesn't work with the current NET 9 preview either.
On further investigation it is failing in the Microsoft.Kiota.Serialization.Json.JsonSerializationWriter.WriteAdditionalData() method when it gets to processing the Collection(DateTimeOffset) items in the AdditionalData properties.
I've tried passing it orderDates
both as a List<DateTime>
and a List<DateTimeOffset>
but neither seem to work ...
So my AdditionalData has:
{ "OrderDates@odata.type", "Collection(DateTimeOffset)" },
{ "OrderDates", orderDates },
Describe the bug
Using standard C# code from customer Graph connector samples to upload external items to an existing connection. An unhandled, untrappable exception is thrown by the code below.
Expected behavior
The external item should be posted, or any exception handled.
How to reproduce
This is occurring in a project based on the standard Microsoft sample: https://devblogs.microsoft.com/microsoft365dev/lets-build-a-custom-microsoft-graph-connector/
Test project is available here: https://github.com/AlanPBourke/DataConnectorCopilot/tree/main
Steps:
To retry:
SDK Version
5.61.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
``` 'DataConnectorCopilot.exe' (CoreCLR: DefaultDomain): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.10\System.Private.CoreLib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'DataConnectorCopilot.exe' (CoreCLR: clrhost): Loaded 'C:\Users\abourke\source\Workspaces\Workspace2023\R_and_D\DataConnectorCopilot\DataConnectorCopilot\bin\Debug\net8.0\DataConnectorCopilot.dll'. Symbols loaded. 'DataConnectorCopilot.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.10\System.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'DataConnectorCopilot.exe' (CoreCLR: clrhost): Loaded 'c:\program files\microsoft visual studio\2022\professional\common7\ide\commonextensions\microsoft\hotreload\Microsoft.Extensions.DotNetDeltaApplier.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'DataConnectorCopilot.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.10\System.IO.Pipes.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'DataConnectorCopilot.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.10\System.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'DataConnectorCopilot.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.10\System.Collections.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'DataConnectorCopilot.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.10\System.Console.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'DataConnectorCopilot.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.10\System.Threading.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'DataConnectorCopilot.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.10\System.Runtime.InteropServices.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'DataConnectorCopilot.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.10\System.Threading.Overlapped.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'DataConnectorCopilot.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.10\System.Security.AccessControl.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'DataConnectorCopilot.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.10\System.Security.Principal.Windows.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'DataConnectorCopilot.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.10\System.Security.Claims.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'DataConnectorCopilot.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.10\System.Runtime.Loader.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'DataConnectorCopilot.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.10\System.Collections.Concurrent.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'DataConnectorCopilot.exe' (CoreCLR: clrhost): Loaded 'C:\Users\abourke\source\Workspaces\Workspace2023\R_and_D\DataConnectorCopilot\DataConnectorCopilot\bin\Debug\net8.0\Microsoft.Graph.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'DataConnectorCopilot.exe' (CoreCLR: clrhost): Loaded 'C:\Users\abourke\source\Workspaces\Workspace2023\R_and_D\DataConnectorCopilot\DataConnectorCopilot\bin\Debug\net8.0\Microsoft.Kiota.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Step into: Stepping over non-user code 'DataConnectorCopilot.DataConnectorCopilot.Main' Step into: Stepping over non-user code 'DataConnectorCopilot.DataConnectorCopilot.Configuration
Windows 11 23H2 Intel x64 NET SDK 8.0.403
Other information
No response