Wiktionary
build on sand
vb. (context idiomatic English) To put something in an unstable position by failing to give it a secure foundation.