I want to transfer a small SharePoint Site to a different tenant with PnP.
I log in with the following command:
Connect-PnPOnline -url https://mytenant.sharepoint.com/sites/mysite -UseWebLogin
When exporting the site template, I get an error when I include (don't exclude) lists.
Get-PnpSiteTemplate -Out TemplateExport.xml
>> Get-PnPSiteTemplate : GetAccessTokenAsync() called without an ACS token generator.
Specify in AuthenticationManager constructor the authentication parameters
If I exclude lists, the export works fine (no error).
Get-PnpSiteTemplate -Out TemplateExport.xml -excludeHandlers Lists
If I export only lists by themselves, I don't get an error either.
Export-PnPListToSiteTemplate -List "MyList" -Out ListTemplateExport.xml
Why does the list template export work by itself, but the site template export fails with the lists?
Can I find out which part of the list export fails?