Hi @john john Pter,
1.Verify PnP PowerShell Module Versions:
Ensure you are using the latest version of the PnP PowerShell module. Older versions might have bugs or missing features.
Update-Module -Name PnP.PowerShell
2.Check for Errors in Verbose Mode.
Run the Invoke-PnPTenantTemplate
command with the -Verbose
flag to get more detailed output. This can help identify any specific errors.
Invoke-PnPTenantTemplate -Path "PnP-Provisioning-F.xml" -Verbose
3.Inspect Access Token and Permissions:
Ensure that the user account you are using has the necessary permissions to apply the template on the destination site. The error message mentioning the access token suggests there might be a permissions issue.
Verify that the account has at least Site Collection Administrator rights on the destination site.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.