Search Issue Tracker
By Design
Votes
0
Found in
2019.4
2020.3.8f1
2020.3.25f1
2021.1.0a2
2021.2
2022.1
2022.2
Issue ID
1401765
Regression
Yes
Prefab "Duplicate identifier" errors when importing Prefab in different Editor version than it was created
Reproduction steps:
1. Open the attached project "prefab"
2. In Project Window open the "Assets" folder and find the file "street"
3. Right-click the "street" file and press Reimport
Expected result: Prefab is imported without any errors
Actual result: Console errors: Duplicate identifier -758073206. File: "".
Duplicate identifier -758073096. File: "Assets/street.prefab".
Reproducible with: 2019.4.37f1, 2020.3.8f1, 2020.3.32f1, 2021.1.0a2, 2021.1.28f1, 2021.2.19f1, 2022.1.0b14, 2022.2.0a9
Not reproducible with: 2020.3.0f1, 2020.3.7f1, 2021.1.0a1
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The Editor does not recognize code errors in generic classes when using C# Source Generator to generate serialization code
- Long Sprite names are not truncated in the Inspector window name label and the preview labels when a Sprite with a long name is selected
- NullReferenceException is logged when undoing Deletion of a Visual Query Block of a Search Expression
- “Unsupported type MinMaxCurve” error and “Could not register property modification for animation binding…” warnings are thrown after moving playhead when Particle System Property is added to Animation window
- Nested LocalizedStrings can not query local variables
Resolution Note:
We have scanned through the content of the problematic prefab file and it is indeed corrupted and as such cannot be instantiated.
As the error log states, there are a lot of objects in the file that has identical FileIds and these are supposed to be unique within the same single file.
We sometimes see problems like this if the prefab was merged, for instance via a source control system. We recommend never to merge Unity files as there is no merge tool able to handle how rigid the structure of the files is. We are not aware of any mechanism where a prefab can be corrupted by Unity itself.
There is no way to fix the content of this prefab except for manually modifying the file Ids for every single object, but that is very time confusing and hard to get right.
I would recommend that you re-create the prefab from scratch.