Get Transaction Item gives compilation error "Compiler error(s) encounterd processing expression "Transaction Item"."

I am trying to use Get Transaction Item to iterate through all items in a queue. However, when I am using this activity inside a flow chart, its giving me compilation error as Compiler error(s) encounterd processing expression “Transaction Item”. and it suggests that given name for ‘Output Item’ is not accessible due to protection level.

This works fine with Sequence but not flowchart. Could someone help me please?

can you please share the screen for better understanding?