diff --git a/modules/ingest-common/src/main/java/org/opensearch/ingest/common/RemoveProcessor.java b/modules/ingest-common/src/main/java/org/opensearch/ingest/common/RemoveProcessor.java index 309d411ffcff5..a48cfd87b78c3 100644 --- a/modules/ingest-common/src/main/java/org/opensearch/ingest/common/RemoveProcessor.java +++ b/modules/ingest-common/src/main/java/org/opensearch/ingest/common/RemoveProcessor.java @@ -90,7 +90,7 @@ public IngestDocument execute(IngestDocument document) { // removing _id is disallowed when there's an external version specified in the request if (path.equals(IngestDocument.Metadata.ID.getFieldName()) && document.hasField(IngestDocument.Metadata.VERSION_TYPE.getFieldName())) { - String versionType = document.getFieldValue(IngestDocument.Metadata.VERSION_TYPE.getFieldName(), String.class, true); + String versionType = document.getFieldValue(IngestDocument.Metadata.VERSION_TYPE.getFieldName(), String.class); if (!Objects.equals(versionType, VersionType.toString(VersionType.INTERNAL))) { Long version = document.getFieldValue(IngestDocument.Metadata.VERSION.getFieldName(), Long.class, true); throw new IllegalArgumentException(