# Getting Started tutorial errors

**URL:** <https://discuss.elastic.co/t/getting-started-tutorial-errors/228883>\
**Category:** Elasticsearch\
**Created:** [April 20, 2020, 2:23pm UTC](https://discuss.elastic.co/t/getting-started-tutorial-errors/228883 "2020-04-20T14:23:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rodrigo\_Bezerra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rodrigo_bezerra/32/66686_2.png) [@Rodrigo\_Bezerra](https://discuss.elastic.co/u/Rodrigo_Bezerra)\
**Post date:** [April 20, 2020, 2:23pm UTC](https://discuss.elastic.co/t/getting-started-tutorial-errors/228883/1 "2020-04-20T14:23:27Z")

</div>

Hi,

I'm going through (this Elasticsearch's tutorial)[[https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started-index.html#getting-started-batch-processing](https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started-index.html#getting-started-batch-processing)] but when I try to run the command to bulk import the accounts.json file, I get the following error:

```auto
"type" : "action_request_validation_exception",
        "reason" : "Validation Failed: 1: type is missing;2: type is missing;3: type is missing; (the error is long, and goes up to type 1000 is missing)

```

I have a cluster up locally, I can check it's health and PUT / GET data from it.

I have tried checking the file format, replacing the file with another one and, most importantly, removing all but one entry from the file, but the error persists.

Can anyone give any suggestions?

Cheers.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 20, 2020, 9:39pm UTC](https://discuss.elastic.co/t/getting-started-tutorial-errors/228883/2 "2020-04-20T21:39:50Z")

</div>

What version of Elasticsearch are you using?

---

<div class="post-metadata">

**Author:** ![Rodrigo\_Bezerra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rodrigo_bezerra/32/66686_2.png) [@Rodrigo\_Bezerra](https://discuss.elastic.co/u/Rodrigo_Bezerra)\
**Post date:** [April 21, 2020, 12:20am UTC](https://discuss.elastic.co/t/getting-started-tutorial-errors/228883/3 "2020-04-21T00:20:50Z")

</div>

Hi warkolm,

Version 6.8.7, installed it with homebrew.

Cheers,

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 21, 2020, 12:24am UTC](https://discuss.elastic.co/t/getting-started-tutorial-errors/228883/4 "2020-04-21T00:24:05Z")

</div>

Ok, you should use [the 6.8 docs](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/getting-started-index.html#getting-started-batch-processing), as there is syntax differences.

This is for 6.8;

```auto
curl -H "Content-Type: application/json" -XPOST "localhost:9200/bank/_doc/_bulk?pretty&refresh" --data-binary "@accounts.json"

```

This is for 7.6 - which is the current version, as per the URL you posted originally;

```auto
curl -H "Content-Type: application/json" -XPOST "localhost:9200/bank/_bulk?pretty&refresh" --data-binary "@accounts.json"

```

---

<div class="post-metadata">

**Author:** ![Rodrigo\_Bezerra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rodrigo_bezerra/32/66686_2.png) [@Rodrigo\_Bezerra](https://discuss.elastic.co/u/Rodrigo_Bezerra)\
**Post date:** [April 21, 2020, 12:52am UTC](https://discuss.elastic.co/t/getting-started-tutorial-errors/228883/5 "2020-04-21T00:52:10Z")

</div>

Thanks! You're absolutely correct, adding the \_doc type to the URL solved the issue.

Thanks for your help, warkolm!

---

<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:** [May 19, 2020, 12:52am UTC](https://discuss.elastic.co/t/getting-started-tutorial-errors/228883/6 "2020-05-19T00:52:14Z")

</div>

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