<p>This line is problematic:</p>
<blockquote>
<p>--tx-out $address+$output+&quot;$tokenamount $policyid.$tokenname&quot;</p>
</blockquote>
<p>One your variables is not set. To try it out, just put <code>echo </code> in front of the command to print out what the command really is with variables filled in.</p>

CC BY-SA 4.0
2021-11-24T13:50:14.710Z
--tx-out addr_test1vzzql63nddp8qdgka578hx6pats290js9kmn4uay5we9fwsgza0z3+1400000+1 71421b480f31fd04905d50d0fa5026a459f545acf78ba3f359cc053b.NFT1
Umeraqeel
CC BY-SA 4.0
2021-11-24T13:51:01.410Z
above is the echo result of tx-out
Umeraqeel
CC BY-SA 4.0
2021-11-24T13:36:21.857Z
2021-11-24T13:36:21.857Z
Marek Mahut - StakeNuts
<p>Are you using <code>cardano-cli</code> v1.31?</p>
<p>If so, please refer to <a href="https://cardano.stackexchange.com/questions/4634/errror-cardano-cli-build-raw-assetname-deserisalisation-failed-expecting-hexade">Errror cardano-cli build-raw: AssetName deserisalisation failed expecting hexadecimal digit</a></p>

CC BY-SA 4.0
2021-11-24T13:44:29.167Z
2021-11-24T13:44:29.167Z
georgeos
<p><strong>this is my transaction build script</strong></p>
<blockquote>
<p>cardano-cli transaction build <br />
--mainnet <br />
--alonzo-era <br />
--tx-in $txhash#$txix <br />
--tx-out $address+$output+&quot;$tokenamount $policyid.$tokenname&quot; <br />
--change-address $address <br />
--mint=&quot;$tokenamount $policyid.$tokenname&quot; <br />
--minting-script-file $script <br />
--metadata-json-file metadata.json  <br />
--invalid-hereafter $slotnumber <br />
--witness-override 2 <br />
--out-file matx.raw</p>
</blockquote>
<p><strong>And i get this error when i add tokenname with policy id</strong>
<strong>if i remove the tokenname then its working fine.and also not showing tokenname in cardanoscan</strong></p>
<blockquote>
<p>option --tx-out:
unexpected 'N'
expecting alphanumeric asset name, white space, &quot;+&quot; or end of input</p>
</blockquote>

<cardano-cli><cardano-node><blockchain>
Build transaction script ERROR in cardano .Not support the policyid with tokenname
# Build transaction script ERROR in cardano .Not support the policyid with tokenname

(Asked by: username_0 on 2021-11-24)

**this is my transaction build script**

> cardano-cli transaction build   
> --mainnet   
> --alonzo-era   
> --tx-in $txhash#$txix   
> --tx-out $address+$output+"$tokenamount $policyid.$tokenname"   
> --change-address $address   
> --mint="$tokenamount $policyid.$tokenname"   
> --minting-script-file $script   
> --metadata-json-file metadata.json   
> --invalid-hereafter $slotnumber   
> --witness-override 2   
> --out-file matx.raw

**And i get this error when i add tokenname with policy id**
**if i remove the tokenname then its working fine.and also not showing tokenname in cardanoscan**

> option --tx-out:
> unexpected 'N'
> expecting alphanumeric asset name, white space, "+" or end of input

**Tags:** cardano-cli, cardano-node, blockchain

---

## 2 answers

### Answer by username_2 on 2021-11-24. Score: 0 | Accepted answer

Are you using `cardano-cli` v1.31?

If so, please refer to [Errror cardano-cli build-raw: AssetName deserisalisation failed expecting hexadecimal digit](https://cardano.stackexchange.com/questions/4634/errror-cardano-cli-build-raw-assetname-deserisalisation-failed-expecting-hexade)


---

### Answer by username_1 on 2021-11-24. Score: 0

This line is problematic:

> --tx-out $address+$output+"$tokenamount $policyid.$tokenname"

One your variables is not set. To try it out, just put `echo`  in front of the command to print out what the command really is with variables filled in.

> **Comments:**
> **username_0**: --tx-out addr_test1vzzql63nddp8qdgka578hx6pats290js9kmn4uay5we9fwsgza0z3+1400000+1 71421b480f31fd04905d50d0fa5026a459f545acf78ba3f359cc053b.NFT1  
> **username_0**: above is the echo result of tx-out  

---

