# How to re run the failed transform job for that specific failed duration?

**URL:** <https://discuss.elastic.co/t/how-to-re-run-the-failed-transform-job-for-that-specific-failed-duration/281085>\
**Category:** Elasticsearch\
**Tags:** painless\
**Created:** [August 11, 2021, 2:24pm UTC](https://discuss.elastic.co/t/how-to-re-run-the-failed-transform-job-for-that-specific-failed-duration/281085 "2021-08-11T14:24:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mojahid\_Ahmad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mojahid_ahmad/32/78061_2.png) [@Mojahid\_Ahmad](https://discuss.elastic.co/u/Mojahid_Ahmad)\
**Post date:** [August 11, 2021, 2:24pm UTC](https://discuss.elastic.co/t/how-to-re-run-the-failed-transform-job-for-that-specific-failed-duration/281085/1 "2021-08-11T14:24:22Z")

</div>

I have created one transform job, so the incoming document is passed to transform job and do aggregation, and then it gets ingested into a new index. It was running fine until I see the error

> **failed to gather field mapping for index**

Then I got to know that it is happening because of the limitation of the transform job that it can not deduce the mapping for the new index.

> **[Transform limitations | Elasticsearch Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/transform-limitations.html#transform-painless-limitation)**

Suppose transform job was created on Friday and it got failed on Sunday. And I restart manually on Monday. Here the problem is happening that I lost the data of Sunday failed time to till it got restarted.

1. **So how to re-run the job for that failed time (here Sunday) to get the lost data?**

2. **Any way to recover that data?**

3. **And is there any way to restart the job automatically when it failed?**

Thanks

---

<div class="post-metadata">

**Author:** ![Mojahid\_Ahmad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mojahid_ahmad/32/78061_2.png) [@Mojahid\_Ahmad](https://discuss.elastic.co/u/Mojahid_Ahmad)\
**Post date:** [August 12, 2021, 5:23am UTC](https://discuss.elastic.co/t/how-to-re-run-the-failed-transform-job-for-that-specific-failed-duration/281085/2 "2021-08-12T05:23:17Z")

</div>

@spinscale @dadoonet

---

<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 9, 2021, 5:23am UTC](https://discuss.elastic.co/t/how-to-re-run-the-failed-transform-job-for-that-specific-failed-duration/281085/3 "2021-09-09T05:23:24Z")

</div>

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