Thank you for reporting a bug. We appreciate your feedback - to help the team to understand your needs, please complete the below template to ensure we have the necessary details to assist you. If you have a actual question, we would ask you to use SharePoint Developer Group at Microsoft Tech Community. Thanks!
Environment
[x ] Office 365 / SharePoint Online
[ ] SharePoint 2016
[ ] SharePoint 2013
If SharePoint on-premises, what's exact CU version:
Expected or Desired Behavior
upload document to document folder only once
Observed Behavior
Document will be uploaded twise when using DefaultDocument in PnP Provisioning template.
Following line will uploads document twise to documentset:
<pnp:DefaultDocument Name="Korrespondanse/Korrespondanse.docx" ContentTypeID="0x01010024AE4127B305F24DBCA14BEE7D998B8203" FileSourcePath="DocTemp\Dokument1.docx" />
Steps to Reproduce
Run pnp-provisioningtemplate on template which creates documentset with default folder and document.