# Transform script fails to index into destination data stream

**URL:** <https://discuss.elastic.co/t/transform-script-fails-to-index-into-destination-data-stream/378012>\
**Category:** Elasticsearch\
**Tags:** painless, ingest-pipeline, runtime-fields\
**Created:** [May 11, 2025, 9:17am UTC](https://discuss.elastic.co/t/transform-script-fails-to-index-into-destination-data-stream/378012 "2025-05-11T09:17:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)\
**Post date:** [May 11, 2025, 10:36am UTC](https://discuss.elastic.co/t/transform-script-fails-to-index-into-destination-data-stream/378012/2 "2025-05-11T10:36:06Z")

</div>

> [@stefws](#):
>
> `dynamic getter [java.lang.String, value] not found`

I am not at all sure if its relevant, was going to delete the comment, but ... in some other threads there are issues with the .value notation - e.g this

> The .value notation only applies to doc values, try just ctx['additional-data'] within the context of an ingest pipeline (compared to the context of a script filter for example or a scripted aggregation)

from

> [@Painless error](https://discuss.elastic.co/t/painless-error/295335):
>
> Question is easy (and yes I am new to this painfull stuff), what am I doing wrong? { "docs": [{ "error": { "root\_cause": [{ "type": "script\_exception", "reason": "runtime error", "script\_stack": [ "ctx['additional-data'].value.contains('qs:')", " ^---- HERE" ], "script": "ctx['additional-data'].value.contains('qs:')", "lang": "painless", …

---

_[View the full topic](https://discuss.elastic.co/t/transform-script-fails-to-index-into-destination-data-stream/378012)._
