PnP Provisioning Framework - Referenced content type not available in site or template

%3CLINGO-SUB%20id%3D%22lingo-sub-13613%22%20slang%3D%22en-US%22%3EPnP%20Provisioning%20Framework%20-%20Referenced%20content%20type%20not%20available%20in%20site%20or%20template%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-13613%22%20slang%3D%22en-US%22%3E%3CP%3EUsing%20PnP%20SiteProvisioning%20framework%20OfficeDevPnP.Core%20(v.%202.7.1609.3).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExtracting%20template%20from%20SharePoint%20Online%20with%20lcid%201033%20(English%20site)%20and%20applying%20to%20english%20OnPrem%202013%20site%20%3D%26gt%3B%20everytning%20ok%3C%2FP%3E%3CP%3EExtracting%20template%20from%20SharePoint%20Online%20with%20lcid%201030%20(Danish%26nbsp%3Bsite)%20and%20applying%20to%20Danish%20OnPrem%202013%20site%20%3D%26gt%3B%20Error%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3EReferenced%20content%20type%200x0101009D1CB255DA76424F860D91F20E6C4118%20not%20available%20in%20site%20or%20in%20template%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20above%20can%20be%20reproduced%20with%20a%20100%25%20standard%20created%20team%20site%20-%20no%20customization%2C%20branding%20what%20so%20ever%20applied%20before%20extracting%20template.%26nbsp%3B%3C%2FP%3E%3CP%3EUsing%20pnp%20filetype%20to%20save%20extracted%20template.%20The%20english%20template%20generates%20a%20very%20small%20pnp%20file%20(without%20all%20the%20default%20lists%2C%20fields%20etc.).%20But%20the%20Danish%20template%20includes%20all%20the%20default%20lists%20(with%20danish%20names).%20The%20SitePages%20list%20includes%20a%20content%20type%20with%20ID%26nbsp%3B0x0101009D1CB255DA76424F860D91F20E6C4118%2C%20which%20is%20not%20present%20and%20gives%20the%20error%20above.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%20%3CLISTINSTANCE%20title%3D%22Webstedssider%22%20description%3D%22%22%20documenttemplate%3D%22%22%20templatetype%3D%22119%22%20url%3D%22SitePages%22%20enableversioning%3D%22true%22%20minorversionlimit%3D%220%22%20maxversionlimit%3D%220%22%20draftversionvisibility%3D%220%22%20templatefeatureid%3D%2200bfea71-c796-4402-9f2f-0eb9a6e71b18%22%20contenttypesenabled%3D%22true%22%20enableattachments%3D%22false%22%20enablefoldercreation%3D%22false%22%3E%0A%20%20%20%20%20%20%20%20%20%20%3CCONTENTTYPEBINDINGS%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CCONTENTTYPEBINDING%20contenttypeid%3D%220x010108%22%20default%3D%22true%22%3E%3C%2FCONTENTTYPEBINDING%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CCONTENTTYPEBINDING%20contenttypeid%3D%220x0120%22%3E%3C%2FCONTENTTYPEBINDING%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CCONTENTTYPEBINDING%20contenttypeid%3D%220x01010901%22%3E%3C%2FCONTENTTYPEBINDING%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CCONTENTTYPEBINDING%20contenttypeid%3D%22%26lt%3BEM%26gt%3B0x0101009D1CB255DA76424F860D91F20E6C4118%22%3E%20%2F%26gt%3B%0A%20%20%20%20%20%20%20%20%20%20%26lt%3B%2Fpnp%3AContentTypeBindings%26gt%3B%3C%2FCONTENTTYPEBINDING%3E%3C%2FCONTENTTYPEBINDINGS%3E%3C%2FLISTINSTANCE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAre%20we%20missing%20anything%20in%20order%20to%20get%20the%20PnP%20Provisioning%20framework%20to%20work%20with%20Danish%20templates%3F%20-%20of%20course%20we%20can%20manually%20edit%20the%20generated%20pnp%20file%20and%20erase%20all%20the%20extra%20content%20incl.%20the%20offending%20ContentType%2C%20but%20we%20would%20rather%20have%20a%20100%25%20automated%20solution%2C%20where%20templates%20are%20extracted%20on%20the%20fly%20and%20working%20for%20both%20Danish%20and%20English%20templates.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20ideas%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3EThomas%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Using PnP SiteProvisioning framework OfficeDevPnP.Core (v. 2.7.1609.3).

 

Extracting template from SharePoint Online with lcid 1033 (English site) and applying to english OnPrem 2013 site => everytning ok

Extracting template from SharePoint Online with lcid 1030 (Danish site) and applying to Danish OnPrem 2013 site => Error:

 

 

Referenced content type 0x0101009D1CB255DA76424F860D91F20E6C4118 not available in site or in template

 

 

The above can be reproduced with a 100% standard created team site - no customization, branding what so ever applied before extracting template. 

Using pnp filetype to save extracted template. The english template generates a very small pnp file (without all the default lists, fields etc.). But the Danish template includes all the default lists (with danish names). The SitePages list includes a content type with ID 0x0101009D1CB255DA76424F860D91F20E6C4118, which is not present and gives the error above.

 

 

 <pnp:ListInstance Title="Webstedssider" Description="" DocumentTemplate="" TemplateType="119" Url="SitePages" EnableVersioning="true" MinorVersionLimit="0" MaxVersionLimit="0" DraftVersionVisibility="0" TemplateFeatureID="00bfea71-c796-4402-9f2f-0eb9a6e71b18" ContentTypesEnabled="true" EnableAttachments="false" EnableFolderCreation="false">
          <pnp:ContentTypeBindings>
            <pnp:ContentTypeBinding ContentTypeID="0x010108" Default="true" />
            <pnp:ContentTypeBinding ContentTypeID="0x0120" />
            <pnp:ContentTypeBinding ContentTypeID="0x01010901" />
            <pnp:ContentTypeBinding ContentTypeID="0x0101009D1CB255DA76424F860D91F20E6C4118" />
          </pnp:ContentTypeBindings>

 

Are we missing anything in order to get the PnP Provisioning framework to work with Danish templates? - of course we can manually edit the generated pnp file and erase all the extra content incl. the offending ContentType, but we would rather have a 100% automated solution, where templates are extracted on the fly and working for both Danish and English templates.

 

Any ideas?

 

Best regards,

Thomas

 

0 Replies