Investors & landlords

I have a sale of securities shown as return of principal with no cost basis but TT shows it as a gain for the whole amount.