Applying site template with New-PnPTenantSite fails with "Error applying default column values". #2819
-
PnP.PowerShell to use the site template. When applying a template with Invoke-PnPSiteTemplate, the message "Error applying default column values" may appear and fail. If anyone has information on how this error occurs, please let me know. The following figure shows the results of my runs when I tried each version. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Whenever you get errors invoking a site template, try and enable tracing. This would probably give you relevant info about what is missing on the site.
Regarding the specific error with default values, not fields supports this. |
Beta Was this translation helpful? Give feedback.
-
Sorry for leaving the thread unattended. The matter has since been resolved. I unblocked "security blocking" on all of the files used as PowerShell input information. I did so and was able to avoid the error. I have marked as answered AndersRask's reply that provided the solution tip. Thank you very much for your advice. |
Beta Was this translation helpful? Give feedback.
Whenever you get errors invoking a site template, try and enable tracing. This would probably give you relevant info about what is missing on the site.
Set-PnPTraceLog -On -LogFile traceoutput.txt
Regarding the specific error with default values, not fields supports this.
This leads to the question: Is the template code exported from an existing site, or made "by hand"?
A few tips to debug template issues could be:
Does the template work on another site?
If so, what are the differences?
Try simplifying the template code to pinpoint exactly where the error occurs