Get-PnPProvisioningTemplate Exception Could not load one or more request types

%3CLINGO-SUB%20id%3D%22lingo-sub-117904%22%20slang%3D%22en-US%22%3EGet-PnPProvisioningTemplate%20Exception%20Could%20not%20load%20one%20or%20more%20request%20types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-117904%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20try%20to%20generate%20a%20provisioning%20template%20from%20a%20clean%20Site%20Collection%20on%20O365.%3C%2FP%3E%3CP%3EIt's%20a%20Publishing%20Site%20without%20workflow%2C%20with%20some%20custom%20Site%20Content%20Types%20and%20Columns%20(simple%20type%20of%20columns%2C%20no%20calculated%2C%20lookup%2C%20managed%20metadata).%3C%2FP%3E%3CP%3ENo%20customization%20as%20branding%20or%20workflow%2C%20and%20zero%20custom%20lists%20or%20library.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPowerShell%20script%20(with%20only%20method%20Get-PnPProvisioningTemplate)%20crashes%20with%20message%20%22Could%20not%20load%20one%20or%20more%20request%20types%22%20(or%20similar%2C%20the%20message%20is%20in%20italian%20language%2C%20I%20translated%20it)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EVersion%20of%20SharePoint%20Online%20Client%20SDK%20is%20the%20same%20(latest)%20of%20SharePoint%20Online%20Management%20Shell%20and%20I%20use%20latest%20SharePoint%20PnP%20PowerShell%20Command%20Module%20for%20Online.%3C%2FP%3E%3CP%3EI%20use%20SharePoint%20tenant%20administrator%20credentials%20(not%20Global%20tenant%20admin).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20trace%20log%20settings%2C%20last%20message%20is%20about%20saved%20xxxx.it-IT.resx%20file%20in%20folder.%3C%2FP%3E%3CP%3EThen%2C%20exception.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20can%20I%20do%20to%20understand%26nbsp%3Bexception%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-118668%22%20slang%3D%22en-US%22%3ERe%3A%20Get-PnPProvisioningTemplate%20Exception%20Could%20not%20load%20one%20or%20more%20request%20types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-118668%22%20slang%3D%22en-US%22%3EI%20tried%20to%20install%20previous%20version%20module%20of%20pnp%20powershell%20and%20then%20it's%20ok.%3CBR%20%2F%3E(AppyTemplate%20goes%20in%20error%20at%20the%20end%2C%20but%20it%20is%20another%20problem%20%3A)%3C%2Fimg%3E%20)%3CBR%20%2F%3Ethank%20you%3CBR%20%2F%3E%3CBR%20%2F%3E(I%20leave%20question%20opened%20because%20new%20version%20has%20probably%20issues)%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-118098%22%20slang%3D%22en-US%22%3ERe%3A%20Get-PnPProvisioningTemplate%20Exception%20Could%20not%20load%20one%20or%20more%20request%20types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-118098%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20seems%20to%20me%20it%20is%20a%20bug%20in%20the%20with%20the%20resx%20files%20of%20italy.%3C%2FP%3E%3CP%3EBest%20thing%20to%20do%20is%20report%20the%20bug%20in%20the%20github%20of%20the%20pnp%20team.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi,

 

I try to generate a provisioning template from a clean Site Collection on O365.

It's a Publishing Site without workflow, with some custom Site Content Types and Columns (simple type of columns, no calculated, lookup, managed metadata).

No customization as branding or workflow, and zero custom lists or library.

 

PowerShell script (with only method Get-PnPProvisioningTemplate) crashes with message "Could not load one or more request types" (or similar, the message is in italian language, I translated it)

 

Version of SharePoint Online Client SDK is the same (latest) of SharePoint Online Management Shell and I use latest SharePoint PnP PowerShell Command Module for Online.

I use SharePoint tenant administrator credentials (not Global tenant admin).

 

In trace log settings, last message is about saved xxxx.it-IT.resx file in folder.

Then, exception.

 

What can I do to understand exception?

 

Thank you!

2 Replies

It seems to me it is a bug in the with the resx files of italy.

Best thing to do is report the bug in the github of the pnp team.

I tried to install previous version module of pnp powershell and then it's ok.
(AppyTemplate goes in error at the end, but it is another problem :) )
thank you

(I leave question opened because new version has probably issues)