Throw an exception if memberId not unique