You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python: Bug: Python in-memory upsert fails with a key storage_name alias #14547
InMemoryCollection.upsert() raises VectorStoreOperationException when a dictionary or dataclass record's key field has a storage_name different from its Python field name.
The record serializer produces the storage name, but _inner_upsert() still indexes the serialized record using the Python name.
On main at dcb969fbe624dc4efa462c2079831690425b98fd, this raises Error upserting record(s) into collection 'example': 'id'.
Expected behavior
The upsert returns "first", and the record can be retrieved or deleted using that key. Existing Pydantic records that serialize the Python field name should continue to work.
Platform
Python 3.12.2, Windows; Semantic Kernel Python source at the commit above.
Additional context
I can submit a small fix that reads the serialized storage key while preserving the existing logical-key serialization path, with dictionary, dataclass and Pydantic regression tests.
changed the title [-]Bug: Python in-memory upsert fails with a key storage_name alias[/-][+]Python: Bug: Python in-memory upsert fails with a key storage_name alias[/+]on Oct 5, 2026
Activity
[-]Bug: Python in-memory upsert fails with a key storage_name alias[/-][+]Python: Bug: Python in-memory upsert fails with a key storage_name alias[/+]