Except as otherwise provided in Article 1291, the sheriff may exercise his civil functions only in the parish for which he was elected.