Diagnosing transactions problems and troubleshooting
If you experience any problems while setting up your network, we are here to help. Logs created by the nodes will help us classify any problems and suggest solutions. The log levels used are info, debug, and trace. This section outlines how to diagnose and solve some problems that you may encounter:
Problem: Failed reading: Your input is either malformed or not hex encoded:
```$ cardano-cli shelley transaction build-raw --tx-in f5296e996940b1c81f781594293d423b4250a454f5832b0740a923f74460d34#1 --tx-out $(cat payment2.addr)+100000000 --tx-out $(cat payment.addr)+899832033 --ttl 335000 --fee 167965 --out-file tx001.raw
1
```> option --tx-in: Failed reading: Your input is either
2
malformed or not hex encoded:
3
f5296e996940b1c81f781594293d423b4250a454f5832b0740a923f74460d34
Copied!
Diagnosis: tx-in is not a valid UTXO
Solution: Make sure that you are using a correct UTXO. You can query this with:
```$ cardano-cli shelley query utxo --address $(cat payment.addr) --testnet-magic 1097911063
1
**Problem**: ExpiredUTxO
2
​
3
```$ cardano-cli shelley transaction submit \
4
> --tx-file tx001.signed \
5
> --testnet-magic 1097911063
Copied!
```> ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure(ExpiredUTxO {pfUTXOttl = SlotNo {unSlotNo = 123456}, pfUTXOcurrentSlot = SlotNo {unSlotNo = 123457}})))]
1
**Diagnosis**: TTL has already passed.
2
​
3
**Solution**: Look at pfUTXOttl and pfUTXOcurrentSlot. Current Slot is ahead of UTXOttl.
4
​
5
Build a new transaction with a TTL (time to live) higher than Current Slot. As a rule of thumb, you will need between 300-500 slots to build, sign, and submit the transaction.
6
​
7
**Problem**: ValueNotConservedUTxO
8
​
9
```$ cardano-cli shelley transaction submit \
10
> --tx-file tx001.signed \
11
> --testnet-magic 1097911063
Copied!
```ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure (FeeTooSmallUTxO (Coin 172409) (Coin 167965)))),LedgerFailure (UtxowFailure (UtxoFailure (ValueNotConservedUTxO (Coin 1000000000)(Coin 999999998))))]
1
**Diagnosis**: Value not Conserved: (Input UTXO β‰  Fee + Amount sent + Change)
2
​
3
**Solution**: Check that output amount is equal to input amount
4
​
5
**Problem**: BadInputsUTxO
6
​
7
```$ cardano-cli shelley transaction submit \
8
--tx-file tx001.signed \
9
--testnet-magic 1097911063
Copied!
```> ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure (BadInputsUTxO (fromList [TxIn (TxId {_TxId =f5296e996940b1c81f781594293d423b4250a454f5832b0740a923f74460d34e}) ]))))
1
**Diagnosis**: Bad UTXO transaction index
2
​
3
**Solution**: Verify the UTXO transaction index using:
4
​
5
```$ cardano-cli shelley query utxo \
6
--address $(cat payment.addr) \
7
--testnet-magic 1097911063
Copied!

```> TxHash TxIx Lovelace

7f1d95ce599c84064c61903c0b1334c826b55c48a1.... 1 1000000000000
```
We encourage you to share your ideas and suggestions on our dedicated support page so that we can create a library of solutions and support for the tasks that you need to perform.
QUESTIONS AND FEEDBACK
If you have any questions and suggestions while taking the lessons please feel free to ask in the forum and we will respond as soon as possible.
Last modified 1yr ago
Copy link