There are many reasons why that error could be showing up. Simply upgrading to the latest version of Tableau may solve it. It could be an issue with the data you're bringing in, or with a join, or a number of other things.
Can you share the workbook that you're receiving this on? Or at least tell us what circumstances are giving you this error and which version of Tableau you're running?
Thank you, I think it was my version issue. Besides, I used SUM( ) function incorrectly.