# Error while saving an advanced ML job

**URL:** <https://discuss.elastic.co/t/error-while-saving-an-advanced-ml-job/92527>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [July 10, 2017, 8:26pm UTC](https://discuss.elastic.co/t/error-while-saving-an-advanced-ml-job/92527 "2017-07-10T20:26:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lean](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@Lean](https://discuss.elastic.co/u/Lean)\
**Post date:** [July 10, 2017, 8:26pm UTC](https://discuss.elastic.co/t/error-while-saving-an-advanced-ml-job/92527/1 "2017-07-10T20:26:42Z")

</div>

Hello all!

I'm getting an error while saving a new 'advanced' ML job (see attached images).  
I did not modify datafeed or JSON, just tried to add the detector with low\_varp function over AZ field.  
I tried including over\_field\_name as a partition by "antenna", or adding same field in "partition\_field\_name".  
None of those ways saves ok.

 ![](https://us1.discourse-cdn.com/elastic/original/3X/d/f/df5531eb4b4f4a88795e4b2a6d10853681f6528c.png)

 ![](https://us1.discourse-cdn.com/elastic/original/3X/f/a/fabc36227fc9fd3a76a1993962ed1692cd026c4f.png)

Could you please comment what is the correct way to understand the meaning of those fields?  
Are these attached images enough for you to help me getting into this issue?

Thank you!  
Leandro.

---

<div class="post-metadata">

**Author:** ![dkyle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dkyle/32/59114_2.png) [@dkyle](https://discuss.elastic.co/u/dkyle)\
**Post date:** [July 11, 2017, 9:05am UTC](https://discuss.elastic.co/t/error-while-saving-an-advanced-ml-job/92527/2 "2017-07-11T09:05:13Z")

</div>

Hi Leandro,

The error is due to a mapping clash in the index where the job results are stored. By default the results from all jobs are stored in a single shared index named _.ml-anomalies-shared_, and that index already has a mapping for the field _antenna_ (created by a previous job) which is different to the new mapping. Maybe previously _antenna_ was a nested object and now is a text field.

The solution is simple: when you create the job check the _Use dedicated index_ box and the results will be saved in a new index without any existing mappings.

---

<div class="post-metadata">

**Author:** ![Lean](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@Lean](https://discuss.elastic.co/u/Lean)\
**Post date:** [July 12, 2017, 8:01pm UTC](https://discuss.elastic.co/t/error-while-saving-an-advanced-ml-job/92527/3 "2017-07-12T20:01:51Z")

</div>

ok, I will try that.

Thanks, David.

---

<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:** [August 9, 2017, 8:02pm UTC](https://discuss.elastic.co/t/error-while-saving-an-advanced-ml-job/92527/4 "2017-08-09T20:02:06Z")

</div>

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