"Cannot copy field [ ] to fields [ ]. Copy-to currently only works for value-type fields, not objects

ES = ver 7.14
Linux , mysql 8
The error happens after upgrade to 7.14 from 7.13
the issue :
I use Logstash to input to ES from MySQL
U used to add null (nil) value to copy_to field, after upgrade it is not accepted and throw an exception
e.x
{
...
"product_id"=>12345,
"price"=>10,
@timestamp"=>2021-08-03T23:51:58.209Z,
....
"categories"=>nil,
.....
}

"reason"=>"Cannot copy field [categories] to fields [catch_all]. Copy-to currently only works for value-type fields, not objects."}}}}

Logstash :
output {
elasticsearch {
hosts => "localhost:9200"
index => "my-index"
document_id => "%{product_id}"
doc_as_upsert => true
action => "update"
}
stdout { codec => rubydebug }
}

2 Likes

I am having the same issue. Any workaround found?

We're having the same issue. It appears that copying "null" values triggers the error ... this started happening after we upgraded our cluster to 7.14.0.

A fix is coming in 7.14.1 https://github.com/elastic/elasticsearch/pull/76665/files

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.