I just hit a very strange issue when trying to deploy my sources today. We have an autonumber field on Lead (format: {YYYY}-{0000000000}; starting number: 1000), that already exists in my sandbox. But when I try to push this field (with or without the reste of the sources) to my sandbox from VS Code, it fails with following error message : "INVALID_CROSS_REFERENCE_KEY: invalid cross reference id".
Even weirder, if I go to setup and try to modify the field (without changing anything), I get the following error message : "Data Not Available - You do not have Edit access to one of the two records you are trying to merge. Please contact your administrator to get additional access or merge the two records".
Not sure what is going on here... I have full access on the field (SysAdmin profil + FLS ok) and the field definition update triggers a merge issue!
Have anyone encountered this before?
Thanks!