# Different type, current\_type \[long\], merged\_type \[text\]"}

**URL:** https://discuss.elastic.co/t/different-type-current-type-long-merged-type-text/167626
**Category:** Elasticsearch
**Created:** [February 8, 2019, 12:26pm UTC](https://discuss.elastic.co/t/different-type-current-type-long-merged-type-text/167626 "2019-02-08T12:26:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![amit.patra](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@amit.patra](https://discuss.elastic.co/u/amit.patra)
#### Post date: [February 8, 2019, 12:27pm UTC](https://discuss.elastic.co/t/different-type-current-type-long-merged-type-text/167626/1 "2019-02-08T12:27:00Z")

</div>

Hi,

We have got some error for inserting a json .

`
{ "payload": { "ber_elements": [{ "ber_element": [ "universal", 16, [ [ "context", 1, [ [ "context", 0, "04000202050109"], ["context", 1, "abcd"], ["context", 3, [ [ "context", 0, [ [ "context", 0, "504d312d3138"], ["context", 1, "abcd"] ] ], ["context", 1, "4d42490a"] ] ], ["context", 4, "00"], ["context", 5, "20190205063043Z"], ["context", 7, [ [ "context", 0, "17a425"], ["context", 1, "0e3ca4"] ] ], ["context", 8, "01"] ] ], ["context", 2, [ [ "context", 0, [ [ "universal", 16, [ [ "context", 0, "01"], ["context", 1, "20190205063043Z"], ["context", 2, [ [ "context", 1, [ [ "context", 0, "05020301"], ["context", 1, "01"], ["context", 2, [ [ "context", 1, "00"], ["context", 2, [ [ "context", 2, "abcd"] ] ] ] ], ["context", 3, [ [ "context", 1, "00"], ["context", 2, [ [ "context", 2, "abcd"] ] ] ] ], ["context", 4, "00df9d"], ["context", 5, "6e"], ["context", 6, "4026"], ["context", 7, "04e3"], ["context", 8, "02"], ["context", 9, "abcd"], ["context", 10, [ [ "universal", 12, "abcd"] ] ], ["context", 11, "03"], ["context", 12, "00"] ] ] ] ] ] ] ] ] ] ] ] ] }, { "ber_element": ["universal", 16, [ [ "context", 1, [ [ "context", 0, "04000202050109"], ["context", 1, "abcd"], ["context", 3, [ [ "context", 0, [ [ "context", 0, "504d312d3138"], ["context", 1, "abcd"] ] ], ["context", 1, "4d42490a"] ] ], ["context", 4, "1d"], ["context", 5, "20190205063045Z"], ["context", 7, [ [ "context", 0, "17a425"], ["context", 1, "0e3cb9"] ] ], ["context", 8, "01"] ] ], ["context", 2, [ [ "context", 0, [ [ "universal", 16, [ [ "context", 0, "02"], ["context", 1, "20190205063045Z"], ["context", 2, [ [ "context", 1, [ [ "context", 0, "05020301"], ["context", 1, "01"], ["context", 2, [ [ "context", 1, "00"], ["context", 2, [ [ "context", 2, "abcd"] ] ] ] ], ["context", 3, [ [ "context", 1, "00"], ["context", 2, [ [ "context", 2, "abcd"] ] ] ] ], ["context", 4, "00df9d"], ["context", 5, "6e"], ["context", 6, "4026"], ["context", 7, "04e3"], ["context", 8, "02"], ["context", 9, "abcd"], ["context", 10, [ [ "universal", 12, "abcd"] ] ], ["context", 11, "03"], ["context", 12, "00"] ] ] ] ] ] ] ] ] ] ] ] ] } ] } }
`

can you please tell me why my json is inserting into ES.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [February 8, 2019, 12:52pm UTC](https://discuss.elastic.co/t/different-type-current-type-long-merged-type-text/167626/2 "2019-02-08T12:52:53Z")

</div>

Hard to read this bad formatted code but I guess it's because you are mixing numbers and text.

---

<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: [March 8, 2019, 12:53pm UTC](https://discuss.elastic.co/t/different-type-current-type-long-merged-type-text/167626/3 "2019-03-08T12:53:04Z")

</div>

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