The controller of the exiled creature isn't required to search their library for a basic land. If that player doesn't, the player won't shuffle their library.

Artwork
Loading artwork…
Path to Exile
Star Trek Commander · #425 · EN
Nonfoil—Foil—
Card rules
Exile target creature. Its controller may search their library for a basic land card, put that card onto the battlefield tapped, then shuffle.
"When that ship went, it must've taken the captain with it." —Chief Montgomery Scott
Uncommon · Illustrated by Pierre Raveneau
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
PreDH Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If the target creature is an illegal target by the time Path to Exile tries to resolve, it won't resolve and none of its effects will happen. The creature's controller won't search for a basic land card.