What word or phrase describes "badly executed but ultimately successful"?

Like the title says, what word or phrase describes a task that was badly executed, but the task was completed anyway?


Solution 1:

"more by luck than judgement"

by chance and not because of any special skill:
"You did amazingly well to get the ball in." "Oh, it was more by luck than judgment."