# When insert into django model elastic search gives error

**URL:** <https://discuss.elastic.co/t/when-insert-into-django-model-elastic-search-gives-error/234998>\
**Category:** Elasticsearch\
**Created:** [May 30, 2020, 1:45am UTC](https://discuss.elastic.co/t/when-insert-into-django-model-elastic-search-gives-error/234998 "2020-05-30T01:45:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shriram\_Choubey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shriram_choubey/32/69413_2.png) [@Shriram\_Choubey](https://discuss.elastic.co/u/Shriram_Choubey)\
**Post date:** [May 30, 2020, 1:45am UTC](https://discuss.elastic.co/t/when-insert-into-django-model-elastic-search-gives-error/234998/1 "2020-05-30T01:45:24Z")

</div>

> 'error': {'type': 'mapper\_parsing\_exception', 'reason': "failed to parse field [transaction\_timestamp] of type [date] in document with id '3'. Preview of field's value: '2020-05-29 17:50:51.721000'", 'caused\_by': {'type': 'illegal\_argument\_exception', 'reason': 'failed to parse date field [2020-05-29 17:50:51.721000] with format [%Y-%m-%d %H:%M:%S]', 'caused\_by': {'type': 'date\_time\_parse\_exception', 'reason': "Text '2020-05-29 17:50:51.721000' could not be parsed at index 0"}}}

---

<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:** [June 27, 2020, 1:45am UTC](https://discuss.elastic.co/t/when-insert-into-django-model-elastic-search-gives-error/234998/2 "2020-06-27T01:45:32Z")

</div>

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