ないわけにはいかない
Meanings
1
cannot avoid doing; must do; have no choice but to
usually written using kana alone
Expresses that one is compelled to do something due to circumstances, obligation, or social pressure. Follows the negative stem of a verb (e.g., 行かない→行かないわけにはいかない). Often implies reluctance but inevitability.
See also: わけにはいかない
If my boss invites me, I can't avoid going to the drinking party.
Since he helped me, I must thank him.