# \--argument error is not opt, reserved or null

**URL:** <https://forum.dfinity.org/t/argument-error-is-not-opt-reserved-or-null/9510>\
**Category:** Developers\
**Created:** [December 9, 2021, 10:02am UTC](https://forum.dfinity.org/t/argument-error-is-not-opt-reserved-or-null/9510 "2021-12-09T10:02:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![avi](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/avi/32/1904_2.png) [@avi](https://forum.dfinity.org/u/avi)\
**Post date:** [December 9, 2021, 10:02am UTC](https://forum.dfinity.org/t/argument-error-is-not-opt-reserved-or-null/9510/1 "2021-12-09T10:02:50Z")

</div>

I follow examples [examples/motoko/ledger-transfer at 2096a6aba6ef25e1758ff4e5fa8e0f55146132a5 · dfinity/examples · GitHub](https://github.com/dfinity/examples/tree/2096a6aba6ef25e1758ff4e5fa8e0f55146132a5/motoko/ledger-transfer)  
To run, a strange problem occurred in step 4

einstalling code for canister ledger, with canister\_id rrkah-fqaaa-aaaaa-aaaaq-cai  
The invocation to the wallet call forward method failed with the error: An error happened during the call: 5: Canister rrkah-fqaaa-aaaaa-aaaaq-cai trapped explicitly: Panicked at ‘Deserialization Failed: “No more values on the wire, the expected type record {\n send\_whitelist : vec principal;\n minting\_account : text;\n transaction\_window : opt record { secs : nat64; nanos : nat32 };\n max\_message\_size\_bytes : opt nat64;\n archive\_options : opt record {\n num\_blocks\_to\_archive : nat64;\n trigger\_threshold : nat64;\n max\_message\_size\_bytes : opt nat64;\n node\_max\_memory\_size\_bytes : opt nat64;\n controller\_id : principal;\n };\n initial\_values : vec record { text; record { e8s : nat64 } };\n} is not opt, reserved or null”’, /Users/cory/Workspace/dfinity/ic/rs/rust\_canisters/dfn\_core/src/endpoint.rs:50:41

I run

```auto
dfx canister install --mode reinstall --argument '(record {send_whitelist=vec{}; minting_account="051b05839339f89053454a4b9865ea0452a4bffe2b1cd41f4982bad10c1e637c"; transaction_window = null; max_message_size_bytes = null; archive_options = null; initial_values = vec {record{"bdc4ee05d42cd0669786899f256c8fd7217fa71177bd1fa7b9534f568680a938"; record {e8s=100_000_000_000}}};})' ledger

```

---

<div class="post-metadata">

**Author:** ![kevinli](https://avatars.discourse-cdn.com/v4/letter/k/8edcca/32.png) [@kevinli](https://forum.dfinity.org/u/kevinli)\
**Post date:** [December 24, 2021, 8:49am UTC](https://forum.dfinity.org/t/argument-error-is-not-opt-reserved-or-null/9510/2 "2021-12-24T08:49:19Z")

</div>

I got the same error – did you ever figure it out?

---

<div class="post-metadata">

**Author:** ![avi](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/avi/32/1904_2.png) [@avi](https://forum.dfinity.org/u/avi)\
**Post date:** [December 24, 2021, 10:13am UTC](https://forum.dfinity.org/t/argument-error-is-not-opt-reserved-or-null/9510/3 "2021-12-24T10:13:44Z")

</div>

This error is because candid and wasm version do not correspond

---

<div class="post-metadata">

**Author:** ![kevinli](https://avatars.discourse-cdn.com/v4/letter/k/8edcca/32.png) [@kevinli](https://forum.dfinity.org/u/kevinli)\
**Post date:** [December 24, 2021, 10:24am UTC](https://forum.dfinity.org/t/argument-error-is-not-opt-reserved-or-null/9510/4 "2021-12-24T10:24:09Z")

</div>

I see. How did you fix it? I’m currently using the ledger.did that is already there and the ledger.wasm generated from [ic/rs/rosetta-api/ledger\_canister at 58af48d1f1e5bb20a7f4ae7ef052121187945daf · dfinity/ic · GitHub](https://github.com/dfinity/ic/tree/58af48d1f1e5bb20a7f4ae7ef052121187945daf/rs/rosetta-api/ledger_canister#deploying-locally)

---

<div class="post-metadata">

**Author:** ![Munlite](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/munlite/32/4324_2.png) [@Munlite](https://forum.dfinity.org/u/Munlite)\
**Post date:** [January 11, 2022, 1:14pm UTC](https://forum.dfinity.org/t/argument-error-is-not-opt-reserved-or-null/9510/5 "2022-01-11T13:14:56Z")

</div>

Hello @avi! I have the same problem
