# Not able to update Null values in elastic search using Nest with field mapping

**URL:** <https://discuss.elastic.co/t/not-able-to-update-null-values-in-elastic-search-using-nest-with-field-mapping/256834>\
**Category:** Elasticsearch\
**Created:** [November 27, 2020, 4:07am UTC](https://discuss.elastic.co/t/not-able-to-update-null-values-in-elastic-search-using-nest-with-field-mapping/256834 "2020-11-27T04:07:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prvn\_prasher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prvn_prasher/32/70365_2.png) [@prvn\_prasher](https://discuss.elastic.co/u/prvn_prasher)\
**Post date:** [November 27, 2020, 4:07am UTC](https://discuss.elastic.co/t/not-able-to-update-null-values-in-elastic-search-using-nest-with-field-mapping/256834/1 "2020-11-27T04:07:56Z")

</div>

I just noticed I couldn't able to update null values in existing properties. For example, i am trying to update the Date.  
I am using Nest with C# with field mapping.  
So I think serialization ignoring null values.  
I tried the serialization and shown it in the docs.  
but I am getting exceptions  
```  
[Text(Name = "fd\_status", Fielddata = true)]  
public string FirstDraftStatusValue { get; set; }

```
    /// <summary>
    /// Gets or sets the FirstDraftClearedDate.
    /// </summary>
    [Date(Name = "fd_3p_date")]
    public DateTime? FirstDraftTPUpdateDate { get; set; }

    /// <summary>
    /// Gets or sets the first cleared draft date.
    /// </summary>
    [Date(Name = "fcd_date")]

    public DateTime? FirstClearedDraftDate { get; set; }

```

````auto

     ```
var uri = new Uri(this.hostUrl);
              
                        var pool = new SingleNodeConnectionPool(uri);
                        var connectionSettings =
                            new ConnectionSettings(pool, sourceSerializer: (builtin, settings) => new JsonNetSerializer(
                                builtin, settings,
                                () => new JsonSerializerSettings { NullValueHandling = NullValueHandling.Include },
                                resolver => resolver.NamingStrategy = new SnakeCaseNamingStrategy()
                            ));

                        elasticClient = new ElasticClient(connectionSettings);

````

Exception : Could not load type 'Nest.CartesianPoint' from assembly 'Nest, Version=7.0.0.0, Culture=neutral, PublicKeyToken=96c599bbe3e70f5d'.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 25, 2020, 4:07am UTC](https://discuss.elastic.co/t/not-able-to-update-null-values-in-elastic-search-using-nest-with-field-mapping/256834/2 "2020-12-25T04:07:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
