Update length for externalId