Used upsert operation for script doing nothing – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-8.9

Briefly, this error occurs when an upsert operation is used in Elasticsearch, but the script associated with it doesn’t perform any action. This could be due to a misconfiguration or a mistake in the script. To resolve this issue, you can either remove the upsert operation if it’s not needed, or modify the script to perform the intended action. Additionally, ensure that the script is correctly formatted and doesn’t contain any syntax errors.

This guide will help you check for common problems that cause the log ” Used upsert operation [{}] for script [{}]; doing nothing… ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: .

Log Context

Log “Used upsert operation [{}] for script [{}]; doing nothing…” classname is
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                case "noop":
                case "none":
                    return UpdateOpType.NONE;
                    // TODO: can we remove this leniency yet??
                    logger.warn("Used upsert operation [{}] for script [{}]; doing nothing..."; operation; scriptId);
                    return UpdateOpType.NONE;



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?