the last version used ExternalIdentifeir(number) as the default identifier and did not update the ExternalDisplayIdentifeir (name)
now the new version is working with the ExternalDisplayIdentifeir which is Null for all the old records and creating an error in customer edit page.
Its good to that we are getting the ExternalDisplayIdentifeir as well as the ExternalIdentifeir, however the system should work with the ExternalIdentifeir since old records does not have ExternalDisplayIdentifeir
ExternalIdentifier = ear.ExternalDisplayIdentifier,
should be
ExternalIdentifier = ear.ExternalIdentifier,