valtenhyl opened a new issue, #8454: URL: https://github.com/apache/seatunnel/issues/8454
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues. ### What happened If the index has been created before executing the script, an error will be reported ```http PUT /employee_001 { "mappings": { "properties": { "name": {"type": "text"}, "address": { "type": "nested", "properties": { "street": {"type": "text"}, "city": {"type": "text"} } } } } } ``` If there is no index before executing the script, the nested type property is written as type ### SeaTunnel Version 2.3.8 ### SeaTunnel Config ```conf env { parallelism = 4 job.mode = "BATCH" } source{ Elasticsearch { hosts = ["https://192.168.43.168:9200"] index = "employee_001" } } transform { } sink { Elasticsearch { hosts = ["http://192.168.40.1077:9200"] index = "employee_001" bulk_flush_max_actions = 1000 bulk_flush_interval = 2000 schema_save_mode = "CREATE_SCHEMA_WHEN_NOT_EXIST" data_save_mode = "APPEND_DATA" } } ``` ### Running Command ```shell ./bin/seatunnel.sh --config ./config/seatunnel_es_to_es.conf -e local ``` ### Error Exception ```log Caused by: org.apache.seatunnel.connectors.seatunnel.elasticsearch.exception.ElasticsearchConnectorException: ErrorCode:[ELASTICSEARCH-01], ErrorDescription:[Bulk es response error] - bulk es error: {"took":3,"errors":true,"items":[{"index":{"_index":"employee_001","_id":"PbqCNJQB_0tzEX9zX8-i","status":400,"error":{"type":"mapper_parsing_exception","reason":"object mapping for [address] tried to parse field [address] as object, but found a concrete value"}}},{"index":{"_index":"employee_001","_id":"PrqCNJQB_0tzEX9zX8-i","status":400,"error":{"type":"mapper_p arsing_exception","reason":"object mapping for [address] tried to parse field [address] as object, but found a concrete value"}}}]} at org.apache.seatunnel.connectors.seatunnel.elasticsearch.sink.ElasticsearchSinkWriter.lambda$bulkEsWithRetry$1(ElasticsearchSinkWriter.java:119) at org.apache.seatunnel.common.utils.RetryUtils.retryWithException(RetryUtils.java:48) ... 9 more at org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:205) ... 2 more ``` ### Zeta or Flink or Spark Version _No response_ ### Java or Scala Version java version "1.8.0_221" Java(TM) SE Runtime Environment (build 1.8.0_221-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode) ### Screenshots _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@seatunnel.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org