A ninth-inning error cost the Chicago Cubs the game and the series sweep against the San Diego Padres on Sunday at Wrigley Field.