Solution for realized gain when buying a security

So... I buy a security and then look in in investing and the unrealized cap gains are incorrect. When looking at the transaction report, there is a realized gain there on the buy transaction. No, I was not short the security. Validate/rebuild lots does not fix this problem but shows there is an issue. Many people have commented about this previously. The fix that worked for me is pretty simple. Go to the immediate prior sell for that security in that account. Cut transaction. Paste transaction. Fixed. Hope this works for you...
This discussion has been closed.