# Validation problem after moving from 5.6 to 6.7

**URL:** <https://discuss.elastic.co/t/validation-problem-after-moving-from-5-6-to-6-7/178382>\
**Category:** Elasticsearch\
**Created:** [April 25, 2019, 7:15am UTC](https://discuss.elastic.co/t/validation-problem-after-moving-from-5-6-to-6-7/178382 "2019-04-25T07:15:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![toka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/toka/32/15773_2.png) [@toka](https://discuss.elastic.co/u/toka)\
**Post date:** [April 25, 2019, 7:15am UTC](https://discuss.elastic.co/t/validation-problem-after-moving-from-5-6-to-6-7/178382/1 "2019-04-25T07:15:43Z")

</div>

Hi there!

I upgraded my cluster from 5.6.0 to 6.7.1, and after that, I realized that documents that were created in version 5.6.0 fail when I try a partial update. The error, in particular, is as follow:

```auto
{
  "error": {
    "root_cause": [
      {
        "type": "remote_transport_exception",
        "reason": "[hoge-search001.foo][xxx.xxx.xxx.xxx:9300][indices:data/write/update[s]]"
      }
    ],
    "type": "action_request_validation_exception",
    "reason": "Validation Failed: 1: ifSeqNo is unassigned, but primary term is [3];"
  },
  "status": 400
}

```

There's no problem with documents created in 6.7.1.  
After that, I tried in 6.5.0 (recovering from a snapshot taken in 5.6.0) and no problems so far with old and new documents.

I suspect it's related to the [Optimistic Concurrency Control](https://www.elastic.co/guide/en/elasticsearch/reference/6.6/optimistic-concurrency-control.html) functionality introduced in 6.6.0.  
I checked the documents failing and as I thought they don't contain the metadata fields `_primary_term` and `_seq_no`, so I wonder from where that `3` in the error is coming from.

Any thoughts?  
Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 23, 2019, 7:15am UTC](https://discuss.elastic.co/t/validation-problem-after-moving-from-5-6-to-6-7/178382/2 "2019-05-23T07:15:53Z")

</div>

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