Niroshan Dickwella survived a dropped catch, some hostile bowling and a swarm of bees to give Sri Lanka's innings some respectability in the third one-day international in Johannesburg on Saturday.
Dickwella scored 74 in a Sri Lankan total of 163 after they were sent in to bat at Wanderers Stadium.
The left-handed Dickwella was dropped on 25 when JP Duminy, running back from backward point, could not hold on to a high leading edge from Kagiso Rabada's bowling.
There was a delay of an hour after a swarm of bees drove the players from the field after 26.3 overs and Dickwella was tested several times by some short-pitched deliveries from South Africa's fast bowlers.
Dickwella's 80-ball innings was ended when he gloved an attempted pull against a short delivery from Dwaine Pretorius to present wicketkeeper Quinton de Kock with his 100th dismissal in 72 one-day internationals. Dickwella hit seven boundaries.
Seamer Pretorius, playing in his first match of the series, took three for 19
SCORES IN BRIEF
SRI LANKA: 163 all out in 39.2 overs (Dickwella 74, Tharanga 31; Pretorius 3-19, Tahir 2-21)