From what I understand, there are two main problems in your model:
- transactionID is already reserved. Therefore you do not have to define it. Transaction IDs are returned when a transaction is submitted)
- Unlike participants and assets, you are not required to use 'identified by' in the definition of your transaction.
Lastly, the reason behind the out-of-context 't:' error is an outstanding Github issue (a different kind of problem producing the error, but the same error results nonetheless).