fool's errand
noun
°A foolish undertaking, especially one that is purposeless, fruitless, nonsensical, or certain to fail.
°Such an undertaking, assigned as a prank.
synonyms: lost errand, wild goose chase, snipe hunt, key to the midway