Recently while trying to migrate configuration records, we started getting warning in CRM Configuration Migration tool – “Completed importing x of x, x queued for second pass updates” for multiple entities.
Looking in the log we got the below error detail
“ImportEntity – Result: True – Entity: msdyusd_agentscriptaction – Adding msdyusd_agentscriptaction to the reprocess List as field owningbusinessunit with value aeb9a12b-dd3b-e711-80fb-5065f38b5691 – LookupEntity businessunit and Record Id dac37a7f-8e3c-e311-87f2-00155dd8d60b () – (action:Skip) failed validation for reason code: LookupRecordNotAvailable”
Finally, we figured out that the records that were failing were owned by the system user, whose roles we had recently removed and had set its access mode as Administrative.
Assigning appropriate security role and setting access mode to Read-Write for that particular user, ensured that all the records that were owned by that user were migrated successfully.
Hope it helps..