The template for creating list should be successfully applied to target site, even there have list templates created in list template gallery.
Observed Behavior
When target site have list template created, after calling cmdlet Apply-PnPProvisioningTemplate, there will have error throw Unable to find an SPForm matching URL , such as /sites/RogerZhangCommunicationShowCaseSite01/Lists/catdsgspscoop/DispForm.aspx
Apply-PnPProvisioningTemplate : Unable to find an SPForm matching URL
/sites/RogerZhangShowCaseProvisioningWithListTemplate/Lists/catdsgspscoop/DispForm.aspx.
Parameter name: path
At line:1 char:1
and when you go to the target site's site content, you may see the list named as {ListUri} or {List Title} such as catdsgspscoop or 'Catapult System Scoop' . But when you open the list, you will see the created list default view columns are not from the provisioning template and actually it may be created by list template since it will match one of your site list template.
Steps to Reproduce
Create a new communication show case site in your tenant.
Using SharePoint Online management Shell cmdlet to set DenyAddAndCustomizePages as false to enable the list template feature.
You will see the error "Unable to find an SPForm matching URL"
Navigate to the site content and you will see the provisioning list was created, but the list
columns are not from the provisioning template and actually it may be created by list template(we created in step 4 ), since the columns totally match.
**FYI:
Based on my investigation , after delete all list templates from list template Gallery(no need to empty recycle bin), the provisioning engine can successfully do list provisioning**.
I also did deep investigation to try each version of the PnP cmdlet, and I found if I use version 2.25.1804.1 or 2.25.1804.0 and update provisioning schema and generator version as below , then use PnP version 2.25.1804.1 or 2.25.1804.0, even there have list templates, my list can also be provisioning successfully. So I assume this should be bug for later versions include latest 3.16.1912.0
Category
[ ] Bug
Environment
[ ] Office 365 / SharePoint Online
Expected or Desired Behavior
The template for creating list should be successfully applied to target site, even there have list templates created in list template gallery.
Observed Behavior
When target site have list template created, after calling cmdlet Apply-PnPProvisioningTemplate, there will have error throw Unable to find an SPForm matching URL , such as /sites/RogerZhangCommunicationShowCaseSite01/Lists/catdsgspscoop/DispForm.aspx
and when you go to the target site's site content, you may see the list named as {ListUri} or {List Title} such as catdsgspscoop or 'Catapult System Scoop' . But when you open the list, you will see the created list default view columns are not from the provisioning template and actually it may be created by list template since it will match one of your site list template.
Steps to Reproduce
**FYI:
Based on my investigation , after delete all list templates from list template Gallery(no need to empty recycle bin), the provisioning engine can successfully do list provisioning**.
I also did deep investigation to try each version of the PnP cmdlet, and I found if I use version 2.25.1804.1 or 2.25.1804.0 and update provisioning schema and generator version as below , then use PnP version 2.25.1804.1 or 2.25.1804.0, even there have list templates, my list can also be provisioning successfully. So I assume this should be bug for later versions include latest 3.16.1912.0