The catch by Ervine left South Africa reeling at 4-83 but a world record fifth wicket partnership of 256 from David Miller and JP Duminy guided their side to 4-339 in their 50 overs.
Kieran Francis is a senior editor at Sporting News Australia.