# ERROR when submitting transactions UtxoFailure ValueNotConserved

**URL:** <https://forum.cardano.org/t/error-when-submitting-transactions-utxofailure-valuenotconserved/86366>\
**Category:** Setup a Stake Pool\
**Created:** [25 November 2021 05:12 UTC](https://forum.cardano.org/t/error-when-submitting-transactions-utxofailure-valuenotconserved/86366 "2021-11-25T05:12:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nemonopool](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/nemonopool/32/46825_2.png) [@nemonopool](https://forum.cardano.org/u/nemonopool)\
**Post date:** [25 November 2021 05:12 UTC](https://forum.cardano.org/t/error-when-submitting-transactions-utxofailure-valuenotconserved/86366/1 "2021-11-25T05:12:17Z")

</div>

I am trying to transact with the pledge value in my pool and am running into issues I have not seen before. i have looked at other similar threads but they did not address my particular issue.

Input command :  
`cardano-cli transaction submit --tx-file tx.signed --mainnet`

Output Error:  
`Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (ValueNotConservedUTxO (Value 50008098540 (fromList [(PolicyID {policyID = ScriptHash "59835897409c1d899588259e794e29e09d2fddcaca782996757cbb13"},fromList [("xspo94",1)])])) (Value 50008098540 (fromList [])))))]) `

It looks like the error is about value conservation but I cannot see the discrepancy. Also there is a strange xspo64 bit in the error I have not been able to understand. The cat info is pasted below (with truncated addresses). Any help would would be much appreciated. Thank you very much!

`cat balance.out`  
`172f13946ea0ca1fb45f833efd1f078d 0 50006654097 lovelace + TxOutDatumHashNone`  
`6f9bc1b4ddd52a0d63dabe8f767227 0 1444443 lovelace +` 1 `59835897409c1d899588259e794e29e09d2fddcaca782996757cbb13.xspo94 + TxOutDatumHashNone`  
`

---

<div class="post-metadata">

**Author:** ![Psychomb](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/psychomb/32/16719_2.png) [@Psychomb](https://forum.cardano.org/u/Psychomb)\
**Post date:** [25 November 2021 12:43 UTC](https://forum.cardano.org/t/error-when-submitting-transactions-utxofailure-valuenotconserved/86366/2 "2021-11-25T12:43:06Z")

</div>

From what I can understand here, it seems your output equals exactly the sum of your inputs. This is not possible, since you have to pay fees in order to have the tx accepted (and explicitely specify it during tx building).

So your output should rather be `50008098540` minus transaction fees. Let’s say for simplicity you’d pay 0.2 ada as tx fees, your max output can only be 50007898540.

---

<div class="post-metadata">

**Author:** ![Phillip1](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@Phillip1](https://forum.cardano.org/u/Phillip1)\
**Post date:** [26 December 2021 17:29 UTC](https://forum.cardano.org/t/error-when-submitting-transactions-utxofailure-valuenotconserved/86366/3 "2021-12-26T17:29:34Z")

</div>

Remember with the UTxO model, you cannot send part of a UTXO, therefore, you need to calculate the change to send back to your address should you not wish to send all your balance  
expr - -
