What is a txn? How can it be invalid?
"txn" is short for "transaction".  The abbreviation "tx" is also often used.

For an explanation of what makes a transaction (in)valid, see the links at How to know if a transaction is valid?