You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This discussion was converted from issue #4834 on April 07, 2025 19:51.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
here is my json
{
"$schema": "https://aka.ms/sppnp-extract-configuration-schema",
"tenant": {
"Teams": {
"teamSiteUrls": ["https://mytenant.sharepoint.com/sites/pme12"],
"includeGroupId": false,
"includeMessages": false
}
},
"handlers": [
"Tenant"
]
}
under powershell v7.4.7 and PnP.PowerShell 2.12
$tenantUrl="https://mytenant-admin.sharepoint.com/"
$pnpJSON="C:\users\PME\myteams.json"
$pnpTemplate="C:\users\PME\myteamstemplate.xml"
Connect-PnPOnline $tenantUrl -Interactive -ClientId xxxx-xxxx-xxxx-xx-xxxxxx
Get-PnPTenantTemplate –Out $pnpTemplate –Configuration $pnpJSON
Get-PnPTenantTemplate: Object reference not set to an instance of an object.
Logs says
pwsh Error: 0 : 2025-04-04 16:48:47.0442 [Provisioning] [0] [Error] Error occured while retrieving basetemplate 0ms
Any help will be appreciated
Beta Was this translation helpful? Give feedback.
All reactions