Please format your code making your code easier for others to read. I have done that for you.
Place the construction of txn within the producer’s repeat loop. Otherwise, you’re placing the same handle into your analysis fifo, effectively overwriting the object it points to.