I am using the following SharePoint commands to migrate a list between site collections. The list has lookup columns.
Export-SPWeb -Identity "http://example.com/sites/live/cs" -path "C:\myfolder\mylist.cmp" -ItemUrl "/sites/live/cs/Lists/mylist" Import-SPWeb -Identity "http://example.com/sites/portal" -path "C:\myfolder\mylist.cmp"
I am getting warnings like this:
[8/17/2016 12:09:20 PM] Warning: Unable to find a lookup list /sites/portal/cs/Lists/childListName. The list is not part of the exported package and does not exist in the destination site collection.
I have already created childListName in the destination site collection with the same list name. But it doesn't help.
Is there any way to tell Export-SPWeb or Import-SPWeb how to map the dependent list properly between site collections?