# Invalid data: Expected arguments but found none

**URL:** https://forum.dfinity.org/t/invalid-data-expected-arguments-but-found-none/8955
**Category:** Developers
**Created:** [November 19, 2021, 3:03pm UTC](https://forum.dfinity.org/t/invalid-data-expected-arguments-but-found-none/8955 "2021-11-19T15:03:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)
#### Post date: [November 19, 2021, 3:03pm UTC](https://forum.dfinity.org/t/invalid-data-expected-arguments-but-found-none/8955/1 "2021-11-19T15:03:50Z")

</div>

Does someone knows upon deployment (`dfx deploy`) why and when the error `Invalid data: Expected arguments but found none.` can occur?

I don’t have any particular stacktrace about it, don’t notice any particular error in my console and it happens randomly, means same builds are also successful.

---

<div class="post-metadata">

### Author: ![Moses-SMM](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/moses-smm/32/4780_2.png) [@Moses-SMM](https://forum.dfinity.org/u/Moses-SMM)
#### Post date: [February 25, 2022, 9:53am UTC](https://forum.dfinity.org/t/invalid-data-expected-arguments-but-found-none/8955/2 "2022-02-25T09:53:07Z")

</div>

Check the actor constructor of the canister that you are going to deploy/install. If there are arguments inside, you have to add the --argument flag with the values.

---

<div class="post-metadata">

### Author: ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)
#### Post date: [February 25, 2022, 10:24am UTC](https://forum.dfinity.org/t/invalid-data-expected-arguments-but-found-none/8955/3 "2022-02-25T10:24:44Z")

</div>

Yes indeed, forgot to close this question. Thanks for your hint!

The solution finds place in [Encode Principal to Candid arguments - #10 by peterparker](https://forum.dfinity.org/t/encode-principal-to-candid-arguments/10465/10) and [Encode Principal to Candid arguments - #7 by peterparker](https://forum.dfinity.org/t/encode-principal-to-candid-arguments/10465/7)

---

<div class="post-metadata">

### Author: ![Prajwaljanbandhu28](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/prajwaljanbandhu28/32/8245_2.png) [@Prajwaljanbandhu28](https://forum.dfinity.org/u/Prajwaljanbandhu28)
#### Post date: [November 21, 2022, 7:19pm UTC](https://forum.dfinity.org/t/invalid-data-expected-arguments-but-found-none/8955/4 "2022-11-21T19:19:03Z")

</div>

dfx deploy not running.help with this.

 ![Screenshot 2022-11-22 at 12.47.52 AM](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/2X/2/269ca58593e0e6e1f5c94899fbf9692ea026a17e.png)

---

<div class="post-metadata">

### Author: ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)
#### Post date: [November 22, 2022, 8:13am UTC](https://forum.dfinity.org/t/invalid-data-expected-arguments-but-found-none/8955/5 "2022-11-22T08:13:46Z")

</div>

What happens if you try the above solution?
