Why user and record type lookups are not filled on insert?
Question:
I'm importing data from a CSV source into a custom object with a custom Lookup field to the User object, but the field isn't being filled when inserting new records. Why is this happening?
Answer:
The issue is often caused by missing lookup source CSV files for referenced system objects.
For CSV-driven migrations, ensure the required lookup data is present:
RecordType.csvfor RecordType lookups.User.csvandGroup.csv, or a combinedUserAndGroup.csv, for User/Group lookups.
You do not need every possible CSV file, only those required by lookup references used in your object set.