Can not bulk update with script on index have mapping strict dynamic?

Hi guys, i use bulk request with Http to ES, but the error strict_dynamic_mapping_exception has appear.
image
this error not happening when I use bulk request with index have no dynamic_strict.
image


in my case, bulk request run with test_v3_customer and not with v3_customer.

here is my bulk body for example.

How can I fix this. My ES version is 7.12.0. Thanks

can anyone help me :frowning:

Hi @robocon20x

About the "strict":

If new fields are detected, an exception is thrown and the document is rejected. New fields must be explicitly added to the mapping.

Your bulk is probably adding a field that is not mapped.

The way to fix it is for you to create the index without dynamic:strict or map the new field in the index.

2 Likes

Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them :slight_smile:

1 Like

thanks, i found the problem and forgot to close the topic :frowning: , I forgot to delete : in filed name.

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