Cosmos: Getting System.ArgumentNullException when loading not primitive collection properties from stored document #19372
Labels
area-cosmos
closed-no-further-action
The issue is closed and no further action is planned.
customer-reported
Description
If I want to store and load the following structure with EntityFrameworkCore.Cosmos I receive an ArgumentNull-Exception saying:
System.ArgumentNullException: Value cannot be null. (Parameter 'arguments[3]')
It seems that the document has been written to the Cosmos DB in the correct form. But it is not possible to read it out again from the DB.
You can find a running sample project showing this issue in my repository:
https://github.com/Dragon160/EntityFrameworkCoreIssue
Code
Expected behavior
EFC.Cosmos should be able to read the written document again.
Actual behavior
System.ArgumentNullException: Value cannot be null. (Parameter 'arguments[3]')
when executing
Further technical details
EF Core version: 3.1.0 / 3.0.0
Database provider: Cosmos DB
Target framework: Core 3.1 / netStandard2.1
Operating system: Windows 10
The text was updated successfully, but these errors were encountered: