# Transform single hit into multiple documents with Index action

**URL:** <https://discuss.elastic.co/t/transform-single-hit-into-multiple-documents-with-index-action/145010>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [August 18, 2018, 4:35pm UTC](https://discuss.elastic.co/t/transform-single-hit-into-multiple-documents-with-index-action/145010 "2018-08-18T16:35:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![hardbap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hardbap/32/34608_2.png) [@hardbap](https://discuss.elastic.co/u/hardbap)\
**Post date:** [August 20, 2018, 4:59pm UTC](https://discuss.elastic.co/t/transform-single-hit-into-multiple-documents-with-index-action/145010/4 "2018-08-20T16:59:27Z")

</div>

For folks running into the `"could not execute action [index_payload] of watch [_inlined_]. [ctx.payload._index] or [ctx.payload._doc._index] were set together with action [index] field. Only set one of them"` issue the fix is to simply remove the `_index` field of the docs you want to insert into the new index.

Thanks again for the help troubleshooting @spinscale!

---

_[View the full topic](https://discuss.elastic.co/t/transform-single-hit-into-multiple-documents-with-index-action/145010)._
