# Storage write rejected - how to design RPCs with regards to storage object write/read + version

**URL:** https://forum.heroiclabs.com/t/storage-write-rejected-how-to-design-rpcs-with-regards-to-storage-object-write-read-version/2121
**Category:** Runtime Framework
**Tags:** getting-started
**Created:** [November 22, 2021, 2:16pm UTC](https://forum.heroiclabs.com/t/storage-write-rejected-how-to-design-rpcs-with-regards-to-storage-object-write-read-version/2121 "2021-11-22T14:16:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bpodrygajlo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/bpodrygajlo/32/884_2.png) [@bpodrygajlo](https://forum.heroiclabs.com/u/bpodrygajlo)
#### Post date: [November 22, 2021, 2:16pm UTC](https://forum.heroiclabs.com/t/storage-write-rejected-how-to-design-rpcs-with-regards-to-storage-object-write-read-version/2121/1 "2021-11-22T14:16:26Z")

</div>

Hi  
We are moving from godot + mariaDb server to nakama. In the current implementation we have a “database compilation” process which generates SQL insert statements which are then forwarded to the database. Its meant as a “migration” step when new items are added, so it will happen very rarely.

I want to adapt this “compilation” process for nakama. First I’ve created a REST API for adding a single item data to the storage, and removing all item data from storage.

When calling the RPCs I get this error:  
“Storage write rejected - version check failed.”

For this use case I would like to be able to disable the version check, but I understand that it might not be possible.

Therefore I wonder how my RPC module code should look like, currently it works like this (im using TypeScript):

```auto
func rpc():
  data, version = getMyObject
  (...) // updates data
  storeMyObject(data, version)

```

Another issue is that I can generate quite a lot of HTTP requests towards the API during the compilation process and I _ **think** _ nakama is trying to handle them concurrently which causes problems (version check issue again), can I prevent this?

---

<div class="post-metadata">

### Author: ![mofirouz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mofirouz/32/1523_2.png) [@mofirouz](https://forum.heroiclabs.com/u/mofirouz)
#### Post date: [November 29, 2021, 10:40am UTC](https://forum.heroiclabs.com/t/storage-write-rejected-how-to-design-rpcs-with-regards-to-storage-object-write-read-version/2121/2 "2021-11-29T10:40:04Z")

</div>

You can remove the `version` field when trying to write to Storage and the version won’t be checked and instead a straight write will happen.

If your issue persists, please add concrete code examples that actually invoke Nakama’s API rather than `storeMyObject(...)`.
