Open MSFT-klpinhac opened 9 months ago
Same problem. I found this:https://techcommunity.microsoft.com/t5/sharepoint-developer/get-pnpsitetemplate-attempted-to-perform-an-unauthorized/m-p/2631095 It seems that this problem is caused by the way we use to connect-pnponline. But my company is using SharePoint Online operated by 21v in China, I can only connect-pnponline with -useweblogin. How to fix it?
Same issue here as reported by parent with 2.2.0, but using european tenant with -UseWebLogin (-Interactive does not work as it results in 401 unauthorized).
I'm using PowerShell 7.3.8 with PnP.PowerShell-Module 2.2.0 and i'm facing the error below when i try to get a provisioning-template that includes Lists ( i have tried multiple lists, including custom lists and Event-lists, but the error is always the same ). Using
Set-PnPTraceLog
did not help, as the file created is empty.