Replies: 1 comment 1 reply
-
Did you ensure that the list you look into in the lookup list is present in the template xml? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am exporting 4 SharePoint lists using the commands below ; 1 main 'Student' list and 3 lookup lists ( "Category","City","Country") using the pnp powershell commands on windows
Export-PnPListToSiteTemplate -Out lookuplists_template.xml -List "Category","City","Country"
Export-PnPListToSiteTemplate -Out student_list_template.xml -List "Student"
Then I connected to a different site collection and run the commands below. The lists are getting created with the text and number fields, but not the lookup fields in the 'Student' SharePoint list . I tried to add the 'Field' handlers after the 'Lists' handlers but it did not make any difference.
Invoke-PnPSiteTemplate -Path lookuplists_template.xml -Handlers Lists
Invoke-PnPSiteTemplate -Path student_list_template.xml -Handlers Lists
Beta Was this translation helpful? Give feedback.
All reactions