Can't get text on a END_OBJECT

MapperParsingException[failed to parse [Entry.Component.raw]]; nested: IllegalStateException[Can't get text on a END_OBJECT at 1:729];

XML contains sometimes null value field:

... <"Component><"/Component> ...

The same problems:

But I still didn't find solution.
if !([entry][Component] =~ /.+/) {
mutate {
remove_field => [ "[entry][Component]" ]
}
}
doen't work, It remove all fields null and not null.

Another field in my XML file
<"Topic"> <"/Topic">
are always null and I don't see any problem with sening this field to Elastic

<"Topic"> <"/Topic"> is not indexed

Can you give more context? Which API is raising this issue, is it the index API?

If yes, then what do your documents look like?