# Siren 12 - migration error

**URL:** <https://community.siren.io/t/siren-12-migration-error/434>\
**Category:** Siren Platform/Investigate Tech Support Community\
**Created:** [December 2, 2021, 10:52am UTC](https://community.siren.io/t/siren-12-migration-error/434 "2021-12-02T10:52:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![JamesMcGee](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@JamesMcGee](https://community.siren.io/u/JamesMcGee)\
**Post date:** [December 2, 2021, 10:52am UTC](https://community.siren.io/t/siren-12-migration-error/434/1 "2021-12-02T10:52:45Z")

</div>

Hello!

I was using Siren 11 for the past couple of weeks. I tried to upgrade to Siren 12 but I can’t figure out how to overcome the migration errors I’m getting.

I installed a fresh version of Siren 12. Copied my Siren 11 elasticsearch/data folder into the new instance and followed the backup/restore/upgrade instructions I found online.

Getting the same error - There are 102 outdated or missing objects. Please run “bin/investigate upgrade” and restart the server.

I ran the command and restarted the sever but still nothing.

Please help. Thanks.

---

<div class="post-metadata">

**Author:** ![Manu\_Agarwal](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.siren.io/manu_agarwal/32/120_2.png) [@Manu\_Agarwal](https://community.siren.io/u/Manu_Agarwal)\
**Post date:** [December 2, 2021, 11:50am UTC](https://community.siren.io/t/siren-12-migration-error/434/2 "2021-12-02T11:50:12Z")

</div>

Hi James,

Can you please confirm from which minor version of Siren 11 (11.1.?) you are trying for upgrade to Siren 12 ?

Can you please attach the migration error you are getting?

Regards  
Manu

---

<div class="post-metadata">

**Author:** ![JamesMcGee](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@JamesMcGee](https://community.siren.io/u/JamesMcGee)\
**Post date:** [December 2, 2021, 1:40pm UTC](https://community.siren.io/t/siren-12-migration-error/434/3 "2021-12-02T13:40:27Z")

</div>

Hello Manu,

Sure. It is version 11.1.7. Please see the migration error below:

log [22:39:12.276] [error][migrations] Error during migration.upgrade: Adds `_source.siren.globalSearch` context to `savedSearch`  
log [22:39:12.277] [error][migrations] [illegal\_argument\_exception] mapper [search.siren.globalSearch.boost] cannot be changed from type [long] to [double] :: {“path”:"/.siren/\_mapping",“query”:{“type”:“doc”,“include\_type\_name”:true},“body”:"{“doc”:{“properties”:{“search”:{“properties”:{“siren”:{“properties”:{“globalSearch”:{“properties”:{“enabled”:{“type”:“boolean”},“boost”:{“type”:“double”}}}}}}}}}}",“statusCode”:400,“response”:"{“error”:{“root\_cause”:[{“type”:“illegal\_argument\_exception”,“reason”:“mapper [search.siren.globalSearch.boost] cannot be changed from type [long] to [double]”}],“type”:“illegal\_argument\_exception”,“reason”:“mapper [search.siren.globalSearch.boost] cannot be changed from type [long] to [double]”},“status”:400}"}  
at respond (/opt/siren-investigate/node\_modules/elasticsearch/src/lib/transport.js:349:15)  
at checkRespForFailure (/opt/siren-investigate/node\_modules/elasticsearch/src/lib/transport.js:306:7)  
at HttpConnector. (/opt/siren-investigate/node\_modules/elasticsearch/src/lib/connectors/http.js:173:7)  
at IncomingMessage.wrapper (/opt/siren-investigate/node\_modules/lodash/lodash.js:4991:19)  
at IncomingMessage.emit (events.js:412:35)  
at endReadableNT (internal/streams/readable.js:1334:12)  
at processTicksAndRejections (internal/process/task\_queues.js:82:21)  
[illegal\_argument\_exception] mapper [search.siren.globalSearch.boost] cannot be changed from type [long] to [double] :: {“path”:"/.siren/\_mapping",“query”:{“type”:“doc”,“include\_type\_name”:true},“body”:"{“doc”:{“properties”:{“search”:{“properties”:{“siren”:{“properties”:{“globalSearch”:{“properties”:{“enabled”:{“type”:“boolean”},“boost”:{“type”:“double”}}}}}}}}}}",“statusCode”:400,“response”:"{“error”:{“root\_cause”:[{“type”:“illegal\_argument\_exception”,“reason”:“mapper [search.siren.globalSearch.boost] cannot be changed from type [long] to [double]”}],“type”:“illegal\_argument\_exception”,“reason”:“mapper [search.siren.globalSearch.boost] cannot be changed from type [long] to [double]”},“status”:400}"}  
There was an error and the upgrade process failed.

---

<div class="post-metadata">

**Author:** ![Manu\_Agarwal](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.siren.io/manu_agarwal/32/120_2.png) [@Manu\_Agarwal](https://community.siren.io/u/Manu_Agarwal)\
**Post date:** [December 2, 2021, 2:46pm UTC](https://community.siren.io/t/siren-12-migration-error/434/4 "2021-12-02T14:46:32Z")

</div>

Hi James,

This migration error comes if someone has imported NEW saved object( **savedSearch** from Siren 12) to old Siren Instance.

There is a dynamic mapping applied (which sets filed to LONG) onto NEW saved object in Siren 12. The property is only introduced in Siren 12. Not sure how you got this error while upgrading from Siren 11 to Siren 12.

Is it possible could provide us the `data/backup` which was taken before the upgrade.

You can share this details [here](https://support.siren.io/)

Regards  
Manu

---

<div class="post-metadata">

**Author:** ![Manu\_Agarwal](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.siren.io/manu_agarwal/32/120_2.png) [@Manu\_Agarwal](https://community.siren.io/u/Manu_Agarwal)\
**Post date:** [December 7, 2021, 9:38am UTC](https://community.siren.io/t/siren-12-migration-error/434/5 "2021-12-07T09:38:31Z")

</div>

Hi James,

We able to replicate the issue on our side, we will be releasing 12.0.1 very soon which will fix this migration issue.

Regards  
Manu

---

<div class="post-metadata">

**Author:** ![JamesMcGee](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@JamesMcGee](https://community.siren.io/u/JamesMcGee)\
**Post date:** [December 7, 2021, 1:18pm UTC](https://community.siren.io/t/siren-12-migration-error/434/6 "2021-12-07T13:18:19Z")

</div>

Hi Manu,

Great timing! I was just preparing a note to send you the `data/backup` files.

Thank you for the assist.

---

<div class="post-metadata">

**Author:** ![Manu\_Agarwal](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.siren.io/manu_agarwal/32/120_2.png) [@Manu\_Agarwal](https://community.siren.io/u/Manu_Agarwal)\
**Post date:** [December 9, 2021, 4:22pm UTC](https://community.siren.io/t/siren-12-migration-error/434/7 "2021-12-09T16:22:03Z")

</div>

Hi James,

We have released Siren 12.0.1 which will fix this migration issue while upgrading from 11.1.x to Siren 12.

Downloads are available [here](https://siren.io/downloads/?product=siren-platform).

Regards  
Manu
