powershell icon indicating copy to clipboard operation
powershell copied to clipboard

[FEATURE] - Invoke-PnPSiteTemplate - Errors should include some contextual info

Open jimmywim opened this issue 3 years ago • 2 comments

If a Site Template (PNP XML) fails to deploy, it often simply yields the error from the server.

Describe the solution you'd like It would be great if the error output showed which Handler, and which element it was processing when an error was thrown. This would save time troubleshooting issues with templates

jimmywim avatar Aug 22 '22 14:08 jimmywim

Do you use Set-PnPTraceLog -On -Level Debug ?

This might give you some of the information you need.

BaronSparky avatar Aug 22 '22 14:08 BaronSparky

@jimmywim - did you try the above suggestion by @BaronSparky ? It is the standard way to check errors in each handler

gautamdsheth avatar Sep 17 '22 19:09 gautamdsheth

Closing this due to lack of response.

gautamdsheth avatar Sep 29 '22 08:09 gautamdsheth