にあるのではない

does not lie in

→ に
phrase Rare #30,442
does not lie in Used to say that something is not found in or does not consist in the stated thing, often before explaining what it does consist in.
JA: 成功はお金だけにあるのではない。
EN: Success does not lie in money alone.

教育とは多くの事柄を覚えることにあるのではない。

Education is not about memorizing a lot of things.

人間の真の価値はその財産にあるのではない。

A person’s true worth does not lie in their wealth.

幸福は単に富にあるのではない。

Happiness does not lie solely in wealth.

彼女の魅力はその美しさだけにあるのではない。

Her appeal lies in more than just her beauty.