Skip to main content
Best Answer

Elasticsearch writer error

  • October 17, 2019
  • 9 replies
  • 43 views

Forum|alt.badge.img+2

I am trying to write simple features with/without geometry to elasticsearch. I tried different params but always get this error

ELASTICSEARCH writer: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true."}],"type":"illegal_argument_exception","reason":"Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true."},"status":400}

Does anyone have a clue?

Best answer by zhangjinzhou

FME doesn't support elasticsearch 7+ now.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

9 replies

sigtill
Supporter
Forum|alt.badge.img+25
  • Supporter
  • October 18, 2019

Insert a Sample and send only 1 feature to the writer. Can you take a screenshot of this sample in the FME Data Inspector? So we can have a look at the attributes.


Forum|alt.badge.img+2

Insert a Sample and send only 1 feature to the writer. Can you take a screenshot of this sample in the FME Data Inspector? So we can have a look at the attributes.

To simplify the process. I created a new record a assign one attribute to it. It still does not work.


steveatsafe
Safer
Forum|alt.badge.img+13
  • Safer
  • October 21, 2019

To simplify the process. I created a new record a assign one attribute to it. It still does not work.

@zhangjinzhou Can you expand on the Versions of software in use? I can do a test to confirm when I know more... but what you are doing looks pretty simple.


Forum|alt.badge.img+2

@zhangjinzhou Can you expand on the Versions of software in use? I can do a test to confirm when I know more... but what you are doing looks pretty simple.

I used elastic 7. It works after I downgrade to 6.8. Thanks.


Forum|alt.badge.img+2
  • Author
  • Best Answer
  • October 21, 2019

FME doesn't support elasticsearch 7+ now.


nampreetatsafe
Safer
Forum|alt.badge.img+13

FME doesn't support elasticsearch 7+ now.

Thanks @zhangjinzhou... that's right FME doesn't yet seem to support version 7. I see an enhancement request submitted for Elasticsearch v7 support (internal reference: FMEENGINE-59393). We'll try providing any further updates to version 7 support on this thread.


  • April 1, 2021

Has this been fixed? I need to write to ElasticSearch and am getting the error. I cannot revert to ES 6.xx.


steveatsafe
Safer
Forum|alt.badge.img+13
  • Safer
  • April 30, 2021

@planomax​ I see no one has replied to you... did you get past your error? ES 7 should be supported. Please do reach out to us at www.safe.com/support and open a support case. We can take a closer look at the problem. (Also in the meantime share the FME version you are experiencing this in). FME 2021.0 would be worth trying if you are not using it already.


steveatsafe
Safer
Forum|alt.badge.img+13
  • Safer
  • April 30, 2021

Support for ElasticSearch 7 was added in 2021.0. Do let us know of any issues you may encounter!