Jul 19 2023 07:32 AM
Hello All,
Few weeks back my PS script was working fine but client told to change few list columns.
My script is not working after that and showing the below error.
I have checked list columns but I did not see anything wrong. Could you please guide me how to rectify this issue.
Thank you.
Ram
Jul 23 2023 05:38 PM
Jul 23 2023 11:24 PM
Hi @RamBhajan
I would enable the PnP trace first
Set-PnPTraceLog -On -Level Debug
And 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
Jul 24 2023 12:11 AM - edited Jul 24 2023 12:12 AM
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.
Jul 24 2023 12:14 AM
Jul 24 2023 05:54 AM
Jul 24 2023 02:37 PM
SolutionJul 25 2023 02:13 AM
Jul 25 2023 03:46 AM
Jul 26 2023 08:07 AM
Jul 24 2023 02:37 PM
Solution