Cannot delete transform – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 7.5-7.5

Briefly, this error occurs when you try to delete a transform in Elasticsearch that doesn’t exist or is currently in use. The transform could be in use by another process or it could have been already deleted. To resolve this issue, you can first check if the transform exists and is not in use. If it’s in use, stop the process using it before deletion. If it doesn’t exist, ensure you have the correct transform ID. Also, check your user permissions to ensure you have the rights to delete transforms.

This guide will help you check for common problems that cause the log ” Cannot delete transform [ ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin, delete.

Log Context

Log “Cannot delete transform [” class name is TransportDeleteTransformAction.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 @Override
 protected void masterOperation(Request request; ClusterState state;
 ActionListener listener) {
 final PersistentTasksCustomMetaData pTasksMeta = state.getMetaData().custom(PersistentTasksCustomMetaData.TYPE);
 if (pTasksMeta != null && pTasksMeta.getTask(request.getId()) != null && request.isForce() == false) {
 listener.onFailure(new ElasticsearchStatusException("Cannot delete transform [" + request.getId() +
 "] as the task is running. Stop the task first"; RestStatus.CONFLICT));
 } else {
 ActionListener stopTransformActionListener = ActionListener.wrap(
 stopResponse -> transformConfigManager.deleteTransform(request.getId();
 ActionListener.wrap(

 

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?