にあった

was in/at, met, experienced, met; encountered

→ に
phrase Uncommon #10,646
was in/at に marks a location or position, and あった is the past form of ある. In some expressions, にあった can instead mean “encountered” or “met with.”
JA: 鍵は机の上にあった。
EN: The key was on the desk.

私は学校時代にあったいろいろなことを今でもはっきり覚えている。

I still remember many things from my school days clearly.

ここはまさしく私が初めて家内にあった部屋です。

This is exactly the room where I first met my wife.

ローマ・ベイスンのルーニー・リカーズという店がファイルにあった

The file mentioned a store called Looney Rickards in the Roma Basin.

— ミスティック・リバー (2003)

この重要なことが…日記にあったはずなんだが…

This important thing... It should have been in the diary...

— アトランティス 失われた帝国 (2001)

九州にあった要石はいまはダイジンの姿で逃げているだろ?

The keystone that was in Kyushu is running around in Daijin’s form now, isn’t it?

— すずめの戸締まり (2022)

その計画は住民の反対にあった。

The plan met with opposition from the residents.

同じ印が君の家の古い暖炉にあった

The same mark was on the old fireplace in your house.

— 天空の城ラピュタ (1986)

彼は不幸のどん底にあった。

He was at rock bottom.

カバンにあったのは本当に音楽なの?

Was what was in the bag really music?

— コーラス (2004)

ただし、目覚めている部分は夢の中にあった。

However, the part that was awake was in the dream.

倉庫にあったのここに住んでた犬よ

It was in the warehouse—the dog that used to live here.

— ROMA/ローマ (2018)

彼はその書類を見る地位にあった。

He was in a position to view the document.

彼女は絶望のどん底にあった。

She was in the depths of despair.

同じ文章が彼の家のメモにあった

The same sentence was written on a note at his house.

— パディントン2 (2017)

本にあった文です

This sentence was in a book.

— パディントン2 (2017)

日記にあった――この表現…“虚偽の約束”だった

It was in the diary—this phrase... “a false promise.”

— シカゴ (2002)

古文書にあった通りだ

It's just as the ancient document said.

— 天空の城ラピュタ (1986)

phrase Uncommon #15,098
met In this context, it means meeting someone. It is commonly written に会った.
JA: 駅で友達にあった。
EN: I met a friend at the station.

きのうある料理店で、私は突然、バーナードにあった。

Yesterday, I unexpectedly ran into Bernard at a restaurant.

私は昨年あの人気作家にあったことを決して忘れないだろう。

I will never forget meeting that popular writer last year.

劇場に行く途中でヨウコにあった。

I ran into Yoko on my way to the theater.

私は校長先生自身にあったのです。

I met the principal himself.

明子にあったその瞬間から、彼は明子が好きになった。

From the moment he met Akiko, he fell for her.

この前、僕が君にあったのはいつだっけ。

When was it that I last saw you?

先週京都でメグにあった。

I met Meg in Kyoto last week.

親子は久しぶりにあった。

The parent and child met again after a long time apart.

君は以前私にあったことを覚えていますか。

Do you remember meeting me before?

私は学校に行く途中で叔父にあった。

I met my uncle on my way to school.

わたしは、ロンドンにいるときメアリーとジョンにあった。

When I was in London, I met Mary and John.

メアリーの友達にあったよ。

I met Mary's friend.

私達がはじめてディックにあった時のことを覚えてますか。

Do you remember when we first met Dick?

通りで学生の一行にあった。

I ran into a group of students on the street.

phrase Uncommon #16,082
experienced Often used with an unpleasant event or difficulty; in this sense, it is commonly written 遭った.
JA: 彼は大きな困難にあった。
EN: He experienced great difficulties.

私はいじめにあった。

I was bullied.

我々は蜂の群れにあった。

We encountered a swarm of bees.

私たちは予期しない困難にあった。

We encountered unexpected difficulties.

トムはいじめにあった。

Tom was bullied.

私には君にあったのと同じ悩みがある。

I have the same problem you had.

人混みの中で私は女スリにあった。

I was pickpocketed by a woman in the crowd.

彼らの強い反対にあったが、われわれは計画を実行した。

Despite their strong opposition, we carried out the plan.

昨日私は夕立にあった。

I got caught in a sudden rain shower yesterday.

ラッシュアワーの交通渋滞にあった。

I got stuck in rush-hour traffic.

あの銀行は二度強盗にあった。

That bank has been robbed twice.

バスを待っている間に夕立にあった。

I got caught in a sudden rain shower while waiting for the bus.

詐欺にあったのではと思うほど届くのが遅い。

It's taking so long to arrive that I'm starting to wonder if I've been scammed.

phrase Uncommon #19,180
met; encountered The meaning depends on the kanji and context: 会った means “met,” while 遭った often means “suffered” or “fell victim to” something unpleasant.
JA: 昨日、駅で友達にあった。
EN: I met a friend at the station yesterday.

私の兄は電車の中でスリにあった。

My older brother was pickpocketed on the train.

あまり遠くに行かないうちに夕立にあった。

I got caught in a sudden shower before I got very far.

私はメキシコ滞在中に彼女にあった。

I met her while I was in Mexico.

先日私は通りで彼にあった。

I ran into him on the street the other day.

私たちはにわか雨にあった。

We got caught in a sudden shower.

私たちは学校から帰る途中でにわか雨にあった。

We got caught in a sudden rain shower on our way home from school.