Hi Ahmed,
Is your class working outside of the transaction (not shown)
We’ll need more info to be able to help.