Spoilers ahead for 358/2 Days.
Towards the end, after Roxas defeats Xion, she asks him to stop Xemnas. He sets off for The World That Never Was to do exactly that — and fails. Riku intercepts him and wins by giving in to the darkness in his own heart, something the guarded Roxas had no answer for.
Riku then hands the unconscious Roxas to DiZ, and Roxas's memories are erased so that Sora can be fully restored. So the failure is literal: he never reaches Xemnas, and he loses himself in the attempt.