Value source of type ” + this.value() + ” is not supported by scripts – How to solve this Elasticsearch error

Opster Team

July-20, Version: 1.7-8.0

Before you begin reading this guide, we recommend you try running the Elasticsearch Error Check-Up which analyzes 2 JSON files to detect many configuration errors.

Briefly, this error occurs when an unsupported value source is used in an Elasticsearch script. In Elasticsearch, scripts can be used to customize search queries and updates, but only certain value sources are supported. The error suggests that the value source used in the script is not supported. To resolve this error, review the script and check that the value source is supported. If it is not supported, consider using a different value source or a different approach.

To easily locate the root cause and resolve this issue try AutoOps for Elasticsearch & OpenSearch. It diagnoses problems by analyzing hundreds of metrics collected by a lightweight agent and offers guidance for resolving them.

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: source, search and aggregations.

Log Context

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

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


Watch product tour

Try AutoOps to find & fix Elasticsearch problems

Analyze Your Cluster
Skip to content