# 'Invalid Quantity' when trying to issue asset

**URL:** <https://forums.counterparty.io/t/invalid-quantity-when-trying-to-issue-asset/148>\
**Category:** Assets\
**Created:** [March 1, 2014, 8:57pm UTC](https://forums.counterparty.io/t/invalid-quantity-when-trying-to-issue-asset/148 "2014-03-01T20:57:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![opticon](https://avatars.discourse-cdn.com/v4/letter/o/85f322/32.png) [@opticon](https://forums.counterparty.io/u/opticon)\
**Post date:** [March 1, 2014, 8:57pm UTC](https://forums.counterparty.io/t/invalid-quantity-when-trying-to-issue-asset/148/1 "2014-03-01T20:57:46Z")

</div>

Hey folks,  
  
  
I’m trying to issue an asset using the following command:  
  
  
  
`counterpartyd issuance --source=[sourceaddress]--quantity=100 --asset='YPEI' --divisible --description=testdesc`  
  
  
And i’m receiving the following error:  
  
  
`<br />Traceback (most recent call last):<br />&nbsp; File &quot;/home/black/counterpartyd_build/dist/counterpartyd/counterpartyd.py&quot;, line 481, in <module><br />&nbsp; &nbsp; args.unsigned)<br />&nbsp; File &quot;/home/black/counterpartyd_build/dist/counterpartyd/counterpartyd.py&quot;, line 41, in cli<br />&nbsp; &nbsp; unsigned_tx_hex = util.api(method, params)<br />&nbsp; File &quot;/home/black/counterpartyd_build/dist/counterpartyd/lib/util.py&quot;, line 45, in api<br />&nbsp; &nbsp; raise exceptions.RPCError('{}'.format(response_json['error']))<br />lib.exceptions.RPCError: {'message': 'Server error', 'code': -32000, 'data': {'message': 'Invalid quantity', 'args': ['Invalid quantity'], 'type': 'Exception'}}`  
  
  
Everything SEEMS to be in order - I have XCP and BTC in the source address, the command looks correct… Any ideas?

---

<div class="post-metadata">

**Author:** ![Bountyful](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/bountyful/32/4_2.png) [@Bountyful](https://forums.counterparty.io/u/Bountyful)\
**Post date:** [March 1, 2014, 9:39pm UTC](https://forums.counterparty.io/t/invalid-quantity-when-trying-to-issue-asset/148/2 "2014-03-01T21:39:29Z")

</div>

[quote author=opticon link=topic=146.msg980#msg980 date=1393725466]  
Hey folks,  
  
  
I’m trying to issue an asset using the following command:  
  
`counterpartyd issuance --source=[sourceaddress]--quantity=100 --asset='YPEI' --divisible --description=testdesc`  
  
And i’m receiving the following error:  
  
  
`<br />Traceback (most recent call last):<br />&nbsp; File &quot;/home/black/counterpartyd_build/dist/counterpartyd/counterpartyd.py&quot;, line 481, in <module><br />&nbsp; &nbsp; args.unsigned)<br />&nbsp; File &quot;/home/black/counterpartyd_build/dist/counterpartyd/counterpartyd.py&quot;, line 41, in cli<br />&nbsp; &nbsp; unsigned_tx_hex = util.api(method, params)<br />&nbsp; File &quot;/home/black/counterpartyd_build/dist/counterpartyd/lib/util.py&quot;, line 45, in api<br />&nbsp; &nbsp; raise exceptions.RPCError('{}'.format(response_json['error']))<br />lib.exceptions.RPCError: {'message': 'Server error', 'code': -32000, 'data': {'message': 'Invalid quantity', 'args': ['Invalid quantity'], 'type': 'Exception'}}`  
  
  
Everything SEEMS to be in order - I have XCP and BTC in the source address, the command looks correct… Any ideas?  
[/quote]  
  
  
Do you have the latest and greatest counterpartyd?&nbsp; Did you rescan your blocks?  
  
  
If so, then try this one: `counterpartyd issuance --source=[sourceaddress] --asset=YPEI --quantity=100 --divisible --description=&quot;testdesc&quot;`  
[font=Verdana][/font]

---

<div class="post-metadata">

**Author:** ![opticon](https://avatars.discourse-cdn.com/v4/letter/o/85f322/32.png) [@opticon](https://forums.counterparty.io/u/opticon)\
**Post date:** [March 1, 2014, 10:00pm UTC](https://forums.counterparty.io/t/invalid-quantity-when-trying-to-issue-asset/148/3 "2014-03-01T22:00:24Z")

</div>

I’m running v6.2 - and that command didn’t work either. Geh.

---

<div class="post-metadata">

**Author:** ![PhantomPhreak](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@PhantomPhreak](https://forums.counterparty.io/u/PhantomPhreak)\
**Post date:** [March 2, 2014, 12:24pm UTC](https://forums.counterparty.io/t/invalid-quantity-when-trying-to-issue-asset/148/4 "2014-03-02T12:24:28Z")

</div>

[quote author=opticon link=topic=146.msg982#msg982 date=1393729224]  
I’m running v6.2 - and that command didn’t work either. Geh.  
[/quote]  
  
The latest version on [tt]master[/tt] should have this problem fixed.

---

<div class="post-metadata">

**Author:** ![opticon](https://avatars.discourse-cdn.com/v4/letter/o/85f322/32.png) [@opticon](https://forums.counterparty.io/u/opticon)\
**Post date:** [March 2, 2014, 1:50pm UTC](https://forums.counterparty.io/t/invalid-quantity-when-trying-to-issue-asset/148/5 "2014-03-02T13:50:55Z")

</div>

After upgrading my install, I get this error:  
  
  
  
 [font=Verdana][/font]`<br />counterpartyd issuance --source=[sourceaddress] --asset=WANKER --quantity=100 --divisible --description=&quot;&quot;<br />Traceback (most recent call last):<br />&nbsp; File &quot;/home/black/counterpartyd_build/dist/counterpartyd/counterpartyd.py&quot;, line 481, in <module><br />&nbsp; &nbsp; args.unsigned)<br />&nbsp; File &quot;/home/black/counterpartyd_build/dist/counterpartyd/counterpartyd.py&quot;, line 41, in cli<br />&nbsp; &nbsp; unsigned_tx_hex = util.api(method, params)<br />&nbsp; File &quot;/home/black/counterpartyd_build/dist/counterpartyd/lib/util.py&quot;, line 45, in api<br />&nbsp; &nbsp; raise exceptions.RPCError('{}'.format(response_json['error']))<br />lib.exceptions.RPCError: {'message': 'Server error', 'code': -32000, 'data': {'message': 'unexpected first byte of WIF 92ZUJBNnsC1mEazTPUGQ7eVzGNdijxxxgXiJE3bugVajdJ2D94B', 'args': ['unexpected first byte of WIF 92ZUJBNnsC1mEazTPUGQ7eVzGNdijxxxgXiJE3bugVajdJ2D94B'], 'type': 'EncodingError'}}`[font=Verdana][size=78%]  
  
  
For both divisible and indivisible assets.[/size][/font]

---

<div class="post-metadata">

**Author:** ![Bountyful](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/bountyful/32/4_2.png) [@Bountyful](https://forums.counterparty.io/u/Bountyful)\
**Post date:** [March 2, 2014, 7:16pm UTC](https://forums.counterparty.io/t/invalid-quantity-when-trying-to-issue-asset/148/6 "2014-03-02T19:16:03Z")

</div>

This is fixed in the developer branch.   
  
  
I recommend switching to that branch if you wish to run the issuance commands.

---

<div class="post-metadata">

**Author:** ![nimei](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@nimei](https://forums.counterparty.io/u/nimei)\
**Post date:** [March 2, 2014, 10:00pm UTC](https://forums.counterparty.io/t/invalid-quantity-when-trying-to-issue-asset/148/7 "2014-03-02T22:00:52Z")

</div>

same problem here, need help :-\

---

<div class="post-metadata">

**Author:** ![Bountyful](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/bountyful/32/4_2.png) [@Bountyful](https://forums.counterparty.io/u/Bountyful)\
**Post date:** [March 2, 2014, 11:15pm UTC](https://forums.counterparty.io/t/invalid-quantity-when-trying-to-issue-asset/148/8 "2014-03-02T23:15:27Z")

</div>

[quote author=Bountyful link=topic=146.msg1047#msg1047 date=1393805763]  
This is fixed in the developer branch.   
  
  
I recommend switching to that branch if you wish to run the issuance commands.  
[/quote]  
  
  
It’s fixed in the developer branch. You need to checkout that copy to fix this issue.

---

<div class="post-metadata">

**Author:** ![opticon](https://avatars.discourse-cdn.com/v4/letter/o/85f322/32.png) [@opticon](https://forums.counterparty.io/u/opticon)\
**Post date:** [March 3, 2014, 8:32pm UTC](https://forums.counterparty.io/t/invalid-quantity-when-trying-to-issue-asset/148/9 "2014-03-03T20:32:54Z")

</div>

And if anyone is wondering, you’ll need to install ‘insight’ to use the dev branch:  
  
  
[https://github.com/xnova/counterpartyd\_build/blob/develop/docs/SettingUpInsight.rst](https://github.com/xnova/counterpartyd_build/blob/develop/docs/SettingUpInsight.rst)

---

<div class="post-metadata">

**Author:** ![Bountyful](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/bountyful/32/4_2.png) [@Bountyful](https://forums.counterparty.io/u/Bountyful)\
**Post date:** [March 3, 2014, 8:53pm UTC](https://forums.counterparty.io/t/invalid-quantity-when-trying-to-issue-asset/148/10 "2014-03-03T20:53:06Z")

</div>

> [@](#):
>
> And if anyone is wondering, you’ll need to install ‘insight’ to use the dev branch:  
>   
>   
> [https://github.com/xnova/counterpartyd\_build/blob/develop/docs/SettingUpInsight.rst](https://github.com/xnova/counterpartyd_build/blob/develop/docs/SettingUpInsight.rst)
