# How to paas null in bulk action when updating using helpers in python

**URL:** <https://discuss.elastic.co/t/how-to-paas-null-in-bulk-action-when-updating-using-helpers-in-python/294526>\
**Category:** Elasticsearch\
**Created:** [January 17, 2022, 5:41am UTC](https://discuss.elastic.co/t/how-to-paas-null-in-bulk-action-when-updating-using-helpers-in-python/294526 "2022-01-17T05:41:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bipin\_kumar2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bipin_kumar2/32/92048_2.png) [@bipin\_kumar2](https://discuss.elastic.co/u/bipin_kumar2)\
**Post date:** [January 17, 2022, 5:41am UTC](https://discuss.elastic.co/t/how-to-paas-null-in-bulk-action-when-updating-using-helpers-in-python/294526/1 "2022-01-17T05:41:14Z")

</div>

how to paas null in bulk action when updating using helpers in python , i am passing assing in helpers to update a field as null nut it throws error .  
action is as below

actions = [  
{  
'\_op\_type': 'update',  
'\_index': 'index\_name',  
'\_id': 3295137582,  
'doc':{  
'mp\_8012\_n\_0\_32': null,  
'mp\_8013\_n\_0\_32': 2.5,  
'mp\_8014\_n\_0\_32': 3.7}  
}

```
       ]
```

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [January 25, 2022, 3:37pm UTC](https://discuss.elastic.co/t/how-to-paas-null-in-bulk-action-when-updating-using-helpers-in-python/294526/2 "2022-01-25T15:37:46Z")

</div>

Please take care of proper formatting using markdown as well as providing a full blow example allowing others to reproduce the problem. For example the error message in this case would be crucial. Thank you!

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [January 25, 2022, 4:49pm UTC](https://discuss.elastic.co/t/how-to-paas-null-in-bulk-action-when-updating-using-helpers-in-python/294526/3 "2022-01-25T16:49:57Z")

</div>

`null` is not a reserved term for python. It should be only treated as an undefined variable name. The behavior is no wonder.

Have you tried `'null'` or `None`?

---

<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:** [February 22, 2022, 4:50pm UTC](https://discuss.elastic.co/t/how-to-paas-null-in-bulk-action-when-updating-using-helpers-in-python/294526/4 "2022-02-22T16:50:45Z")

</div>

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