Add uniqueness check to call error callback.