Skip to content

Applying site template with New-PnPTenantSite fails with "Error applying default column values". #2819

Answered by AndersRask
wataruf01 asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wataruf01
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants