# Elasticsearch-lang-python - no multiline scripts?

**URL:** <https://discuss.elastic.co/t/elasticsearch-lang-python-no-multiline-scripts/32114>\
**Category:** Elasticsearch\
**Created:** [October 13, 2015, 7:32pm UTC](https://discuss.elastic.co/t/elasticsearch-lang-python-no-multiline-scripts/32114 "2015-10-13T19:32:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![actinica](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@actinica](https://discuss.elastic.co/u/actinica)\
**Post date:** [October 13, 2015, 7:32pm UTC](https://discuss.elastic.co/t/elasticsearch-lang-python-no-multiline-scripts/32114/1 "2015-10-13T19:32:36Z")

</div>

Did a search, but could not find an answer.

I'm curious as to why a multiline script returns a null exception when calling a stored script with the script module

I'd like to be able to do more than just a one line calculation, but haven't been able to.

Using elasticsearch 1.7 and lang-python 2.7.0

Thanks for reading!

---

<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:** [July 5, 2017, 11:45pm UTC](https://discuss.elastic.co/t/elasticsearch-lang-python-no-multiline-scripts/32114/2 "2017-07-05T23:45:03Z")

</div>


