Foreign key for rows added later
I would suggest the following:


Allow null foreign keys in the main table.
Insert rows minus their foreign keys in the import.
Add a table ImportRelationships that stores relationships during importing.
Rectify the foreign keys in the main table at the end of the import based on ImportRelationships.
Delete the rows from ImportRelationships.