Get-PnPSiteTemplate : Expected hex 0x in '{0}'

%3CLINGO-SUB%20id%3D%22lingo-sub-2657475%22%20slang%3D%22en-US%22%3EGet-PnPSiteTemplate%20%3A%20Expected%20hex%200x%20in%20'%7B0%7D'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2657475%22%20slang%3D%22en-US%22%3E%3CP%3E%3CBR%20%2F%3EI'm%20attempting%20to%20export%20a%20sites%20template.%26nbsp%3B%20When%20I%20try%20Fields%20I%20get%20this%20error.%26nbsp%3B%20Any%20help%20is%20appreciated.%3CBR%20%2F%3E%3CBR%20%2F%3EGet-PnPSiteTemplate%20-Out%20%22TemplateFields.xml%22%20-Handlers%20Fields%20-Connection%20%24sourceSite%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%22100%25%22%3EGet-PnPSiteTemplate%20%3A%20Expected%20hex%200x%20in%20'%7B0%7D'.%3CBR%20%2F%3EAt%20line%3A3%20char%3A1%3CBR%20%2F%3E%2B%20Get-PnPSiteTemplate%20-Connection%20%24sourceSite%20-Out%20%22TestCarmaTemplate.x%20...%3CBR%20%2F%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3CBR%20%2F%3E%2B%20CategoryInfo%20%3A%20WriteError%3A%20(%3A)%20%5BGet-PnPSiteTemplate%5D%2C%20FormatException%3CBR%20%2F%3E%2B%20FullyQualifiedErrorId%20%3A%20EXCEPTION%2CPnP.PowerShell.Commands.Provisioning.Site.GetSiteTemplate%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3C%2FLINGO-BODY%3E
Contributor


I'm attempting to export a sites template.  When I try Fields I get this error.  Any help is appreciated.

Get-PnPSiteTemplate -Out "TemplateFields.xml" -Handlers Fields -Connection $sourceSite

 

Get-PnPSiteTemplate : Expected hex 0x in '{0}'.
At line:3 char:1
+ Get-PnPSiteTemplate -Connection $sourceSite -Out "TestCarmaTemplate.x ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (:) [Get-PnPSiteTemplate], FormatException
+ FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Provisioning.Site.GetSiteTemplate
0 Replies