If the target of Merciless Repurposing is illegal as the spell tries to resolve, it won't resolve and none of its effects will happen. You won't incubate.

Artwork
Loading artwork…
Merciless Repurposing
March of the Machine · #117 · EN
Nonfoil—Foil—
Card rules
Exile target creature. Incubate 3. (Create an Incubator token with three +1/+1 counters on it and "2: Transform this token." It transforms into a 0/0 Phyrexian artifact creature.)
As the harvesters bore away the last of his limbs, what remained of Urabrask heard Elesh Norn say, "Leave the traitor be."
Uncommon · Illustrated by Artur Nakhodkin
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions