A South West man has been released from custody after a “data entry error” saw him spend a week in jail without cause.