Value source of type this value is not supported by scripts – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 7.6-8.9

Briefly, this error occurs when you’re trying to use a script in Elasticsearch that doesn’t support the type of value source you’re providing. This could be due to a mismatch between the data type and the script’s expected input. To resolve this issue, you can either change the data type of the value source to match the script’s requirements or modify the script to handle the current data type. Additionally, ensure that the script is compatible with the version of Elasticsearch you’re using.

This guide will help you check for common problems that cause the log ” value source of type [” + this.value() + “] is not supported by scripts ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: search, source, aggregations.

Log Context

Log “value source of type [” + this.value() + “] is not supported by scripts” class name is We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 return ValuesSource.GeoPoint.EMPTY;
 }  @Override
 public ValuesSource getScript(AggregationScript.LeafFactory script; ValueType scriptValueType) {
 throw new AggregationExecutionException("value source of type [" + this.value() + "] is not supported by scripts");
 }  @Override
 public ValuesSource getField(FieldContext fieldContext; AggregationScript.LeafFactory script) {
 if (fieldContext.indexFieldData() instanceof IndexGeoPointFieldData pointFieldData) {


How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?