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 transaction build-raw --tx-in f5296e996940b1c81f781594293d423b4250a454f5832b0740a923f74460d34#1 --tx-out $(cat payment2.addr)+100000000 --tx-out $(cat payment.addr)+899832033 --fee 167965 --out-file tx001.raw
> option --tx-in: Failed reading: Your input is either
malformed or not hex encoded:
f5296e996940b1c81f781594293d423b4250a454f5832b0740a923f74460d34
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 query utxo --address $(cat payment.addr) --testnet-magic 2
​
Problem: ValueNotConservedUTxO
$ cardano-cli transaction submit \
> --tx-file tx001.signed \
> --testnet-magic 2
ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure (FeeTooSmallUTxO (Coin 172409)
(Coin 167965)))),LedgerFailure (UtxowFailure (UtxoFailure (ValueNotConservedUTxO
(Coin 1000000000)(Coin 999999998))))]
Diagnosis: Value not Conserved: (Input UTXO ≠ Fee + Amount sent + Change)
Solution: Check that output amount + fees is equal to input amount
​
Problem: BadInputsUTxO
$ cardano-cli shelley transaction submit \
--tx-file tx001.signed \
--testnet-magic 2
> ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure
(BadInputsUTxO (fromList [TxIn (TxId {_TxId =f5296e996940b1c81f781594293d423b4250a454f5832b0740a923f74460d34e}) ]))))
Diagnosis: Bad UTXO transaction index
Solution: Verify the UTXO transaction index using:
--address $(cat payment.addr) \
--testnet-magic 2
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.