Forum Discussion
Invoke-PnPSiteTemplate : Error applying default column values
- Jul 24, 2023Reduce the XML and try each list for it's own see which ones is giving you an issues. Basicly method of exclution
Hi RamBhajan
I would enable the PnP trace first
Set-PnPTraceLog -On -Level DebugAnd then run your command again.
This will tell you in detail what exactly the "Invoke-PnPSiteTemplate" command does.
You should either get an additional error message or the at least the problematic field (That is the last field the command wanted to update in the trace)
Then we can have a deeper look at why this is happening.
Best Regards,
Sven
Thank you for your message.
Let me tell you what I am trying to do.
I have one SP online template site which is containing nearly 15 lists and libraries along with master data. I am creating xml file template based on the template site and applying to a different site using PnP PowerShell.
I am doing the same using the below command.
Set-PnPTraceLog -On -LogFile $FilePath -Level Debug
But it is not showing any similar error in the error log file which I can see in the console.