diff --git a/azure-cosmosdb-table/azure/cosmosdb/table/_serialization.py b/azure-cosmosdb-table/azure/cosmosdb/table/_serialization.py index 6767337..c26b4da 100644 --- a/azure-cosmosdb-table/azure/cosmosdb/table/_serialization.py +++ b/azure-cosmosdb-table/azure/cosmosdb/table/_serialization.py @@ -198,8 +198,9 @@ def _convert_entity_to_json(source): # form the property node properties[name] = value - if mtype: - properties[name + '@odata.type'] = mtype + odataTypePropertyName = name + '@odata.type' + if mtype and odataTypePropertyName not in properties: + properties[odataTypePropertyName] = mtype # generate the entity_body return dumps(properties)