wild goose chase
noun
Definitions
A futile search, a fruitless errand; a useless and often lengthy task whose execution is inordinately complex relative to the value of the outcome.
Example: Diagnosing this software application's problems is a wild-goose chase because it is built in an environment that has poor debugging tools.
Synonyms:merry dance