To fix Upsert requires view all data on a non-unique custom index, check the below
1. Make sure the External Id field column in the file or table is unique.
2. Make sure the user has access to the External Id field.
3. Make sure Unique check box on the field is enabled if the profile doesn’t have View All Data permission enabled.
Cheers!!!