I did a number of tests now. You don't have to click the OK button to save.
The activity you select must be of the same activity type as the race. I linked a walk with my run and it doesn't save. It worked with a much shorter run so the distance doesn't seem to matter.