としたがだめだった

tried to … but failed

→ と
phrase Rare #34,080
tried to … but failed Follows a verb in the volitional form to describe an unsuccessful attempt.
JA: 窓を開けようとしたがだめだった。
EN: I tried to open the window, but I couldn't.

その夫婦は自分たち二人の問題を解決しようとしたがだめだった。

The couple tried to resolve their problems on their own, but they couldn’t.

彼は何度かたばこをやめようとしたがだめだった。

He tried to quit smoking several times, but he couldn't.

彼らはその証人を買収しようとしたがだめだった。

They tried to bribe the witness, but they failed.

彼女は戸を開けようとしたがだめだった。

She tried to open the door, but she couldn't.

それを開けようとしたがだめだった。

I tried to open it, but I couldn't.