つもりだったが

was planning to, but

→ 積もり
phrase Rare #24,068
was planning to, but Used to say that someone intended or planned to do something, but the plan was not carried out or was followed by an unexpected result. が means “but” here.
JA: 明日早く起きるつもりだったが、寝坊してしまった。
EN: I was planning to get up early tomorrow, but I overslept.

この仕事を終えるつもりだったができなかった

I intended to finish this job, but I couldn't.

私はその映画を今まで見るつもりだったが出来なかった

I had been meaning to watch that movie, but I never got around to it.

私はあなたを訪問するつもりだったができなかった

I was going to visit you, but I couldn't.

彼は自分で私達の手伝いをしているつもりだったが邪魔だけだった

He thought he was helping us, but he was only getting in the way.

私は外国へ行くつもりだったが

I was planning to go abroad, but...