つもりだったのだが

was going to, but...

→ 積もり
phrase Rare #20,574
was going to, but... Expresses a past intention that was not carried out or was interrupted. Often introduces an explanation or contrast, and the sentence may continue with what prevented the action.
JA: 昨日映画を見るつもりだったのだが、疲れて寝てしまった。
EN: I was going to watch a movie yesterday, but I fell asleep because I was tired.

私は昨日を訪ねるつもりだったのだが

I was planning to visit you yesterday, but...

私はその仕事を終えるつもりだったのだが

I intended to finish that job, but...

あなたに手紙を書くつもりだったのだが

I was going to write you a letter, but…

私は彼を訪ねるつもりだったのだができなかった

I had intended to visit him, but I couldn't.

会合に出席するつもりだったのだが

I was planning to attend the meeting, but...