Stuck duplicate transaction in BitcoinQT I received two payments with the following transaction:

https://blockchain.info/tx/12e487de6fd8d920446cd8663dc11977d185ceaa25b7c6f36921fb76e58875f0

On this transaction

1HT1vrdy2fegnVKaTE1rqsFzfPVDpiWYjf output receives 0.1341765 BTC and 19tj6SNnJqZqmDvMuhrjwPudX8qVcT392a output receives 0.27240743.

I have this transaction in my BitcoinQT client. It shows confirmed and everything is fine. The problem is that I have another transaction which has the same inputs and outputs with the above but a different TxID.

It has been stuck in my wallet unconfirmed for two weeks. BC.info does not show this transaction. Neither does any other online service. Below are the full details.

I have around 10 other transaction in my wallet like this. What is this?￼ Why is this happening?

gettransaction 98ea1e0d4169af104fe36535a4615ab82086750323ce4e539b7d9c82707955f6
{
"amount" : 0.40658393,
"confirmations" : 0,
"txid" : "98ea1e0d4169af104fe36535a4615ab82086750323ce4e539b7d9c82707955f6",
"time" : 1392119952,
"timereceived" : 1392119952,
"details" : [
{
"account" : "520c7bb149ede83218f46c96",
"address" : "1HT1vrdy2fegnVKaTE1rqsFzfPVDpiWYjf",
"category" : "receive",
"amount" : 0.13417650
},
{
"account" : "520c7bb149ede83218f46c96",
"address" : "19tj6SNnJqZqmDvMuhrjwPudX8qVcT392a",
"category" : "receive",
"amount" : 0.27240743
}
]
}

gettransaction 12e487de6fd8d920446cd8663dc11977d185ceaa25b7c6f36921fb76e58875f0
{
"amount" : 0.40658393,
"confirmations" : 2490,
"blockhash" : "00000000000000007465867d49096a642c424ae015691c0b0f6280c3bc6de401",
"blockindex" : 78,
"blocktime" : 1392120874,
"txid" : "12e487de6fd8d920446cd8663dc11977d185ceaa25b7c6f36921fb76e58875f0",
"time" : 1392120874,
"timereceived" : 1392120896,
"details" : [
{
"account" : "520c7bb149ede83218f46c96",
"address" : "1HT1vrdy2fegnVKaTE1rqsFzfPVDpiWYjf",
"category" : "receive",
"amount" : 0.13417650
},
{
"account" : "520c7bb149ede83218f46c96",
"address" : "19tj6SNnJqZqmDvMuhrjwPudX8qVcT392a",
"category" : "receive",
"amount" : 0.27240743
}
]
}
Bitcoin Core (bitcoind and Bitcoin-Qt's new name) v0.9 will deal much better with these conflicting transactions within one wallet.

It will keep showing both, but the non-confirming one will be marked "conflicted" with -1 confirmations, will not be rebroadcasted, and won't be considered to have spendable outputs.