On a wild goose chase

Used to describe when you are embarking on a wasted endeavour – a waste of time – that involves a lot of energy or a large investment of resources. A large inconvenience.