# Create index can use connector with '-', but X-Pack error

**URL:** <https://discuss.elastic.co/t/create-index-can-use-connector-with-but-x-pack-error/144443>\
**Category:** Elasticsearch\
**Created:** [August 15, 2018, 3:21am UTC](https://discuss.elastic.co/t/create-index-can-use-connector-with-but-x-pack-error/144443 "2018-08-15T03:21:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crab2died](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crab2died/32/34910_2.png) [@Crab2died](https://discuss.elastic.co/u/Crab2died)\
**Post date:** [August 15, 2018, 3:21am UTC](https://discuss.elastic.co/t/create-index-can-use-connector-with-but-x-pack-error/144443/1 "2018-08-15T03:21:29Z")

</div>

Create index can use connector with '-', but X-Pack search error :

```auto
    {
    "error": {
    "root_cause": [
    {
    "type": "parsing_exception",
    "reason": "line 1:19: mismatched input '-' expecting {<EOF>, ',', 'FULL', 'GROUP', 'HAVING', 'INNER', 'JOIN', 'LEFT', 'LIMIT', 'NATURAL', 'ORDER', 'RIGHT', 'WHERE'}"
    }
    ],
    "type": "parsing_exception",
    "reason": "line 1:19: mismatched input '-' expecting {<EOF>, ',', 'FULL', 'GROUP', 'HAVING', 'INNER', 'JOIN', 'LEFT', 'LIMIT', 'NATURAL', 'ORDER', 'RIGHT', 'WHERE'}",
    "caused_by": {
    "type": "input_mismatch_exception",
    "reason": null
    }
    },
    "status": 400
    }

```

---

<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:** [September 12, 2018, 3:21am UTC](https://discuss.elastic.co/t/create-index-can-use-connector-with-but-x-pack-error/144443/2 "2018-09-12T03:21:32Z")

</div>

Closed on September 12, 2018, 3:21am UTC

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