You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=====================================================================================
Update to the below... so it appears that Add-PnPDataRowsToProvisioningTemplate does work for exporting rows of list items that are located at the root of a list. However, if the list includes folders and list items are stored in a folder (instead of at the root), then the extraction of list items fails.
Any idea if there is a way to get around this? Is this a bug (i.e. should it work)?
I am trying to use PnP to move a list from one site to another and while I can generate the template for the list using Get-PnPProvisioningTemplate , when I try to use Add-PnPDataRowsToProvisioningTemplate to export the existing list entries and add the to the template, there are not errors (i.e. it appears to execute), but I get no data rows in my template, so when I apply the template to my target site, I just get a blank list.
I am using the following code statements to generate the template:
Is this a bug in Add-PnPDataRowsToProvisioningTemplate or am I doing something wrong? I've googled and everything I find seems to indicate that my code above is correct.
I am using SharePointPnPPowerShell2016 v3.29.2101.0
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
=====================================================================================
Update to the below... so it appears that Add-PnPDataRowsToProvisioningTemplate does work for exporting rows of list items that are located at the root of a list. However, if the list includes folders and list items are stored in a folder (instead of at the root), then the extraction of list items fails.
Any idea if there is a way to get around this? Is this a bug (i.e. should it work)?
I am trying to use PnP to move a list from one site to another and while I can generate the template for the list using Get-PnPProvisioningTemplate , when I try to use Add-PnPDataRowsToProvisioningTemplate to export the existing list entries and add the to the template, there are not errors (i.e. it appears to execute), but I get no data rows in my template, so when I apply the template to my target site, I just get a blank list.
I am using the following code statements to generate the template:
Get-PnPProvisioningTemplate -Out c:\temp\DZ-List.xml -ListsToExtract "Gimmal - Local Settings" -Handlers Lists -IncludeAllClientSidePages
Add-PnPDataRowsToProvisioningTemplate -Path c:\temp\DZ-List.xml -List "Gimmal - Local Settings" -Query ''
Is this a bug in Add-PnPDataRowsToProvisioningTemplate or am I doing something wrong? I've googled and everything I find seems to indicate that my code above is correct.
I am using SharePointPnPPowerShell2016 v3.29.2101.0
Thanks
Beta Was this translation helpful? Give feedback.
All reactions