added error for duplicate external attributes