Invoke-PnPSiteTemplate - The target view cannot be configured as a mobile view. #4120
Unanswered
davida1992
asked this question in
General
Replies: 1 comment
-
Any help is much appreciated on this one :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is likely not a bug, and more likely something that I'm doing wrong here.
Basically we have a sharepoint site where subsites are created regularly as part of it. Each sub site needs to be identical to a template, which is why this comes in useful for us overall.
So I'm connecting to the newly created subsite:
Set-PnPTenantSite -Url "$userInput" -DenyAddAndCustomizePages:$false
I'm then invoking the template:
Invoke-PnPSiteTemplate -Path ".\PnP-Provisioning-FileV3.pnp" -ClearNavigation -ProvisionContentTypesToSubWebs:$true
It seems to be working for a while, I can see content going into the subsite, additional items appear in the nav bar etc. However, after a couple of minutes, it seems to stall, providing the following error:
`
Invoke-PnPSiteTemplate: C:\temp2\SP\Sub Site Template\RunMe.ps1:5 Microsoft.SharePoint.Client.ServerException:
Line |
5 | Invoke-PnPSiteTemplate -Path ".\PnP-Provisioning-FileV3.pnp" -ClearNa …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The target view cannot be configured as a mobile view.
PS C:\temp2\SP\Sub Site Template>
at Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQueryAsync()
at Microsoft.SharePoint.Client.ClientContext.ExecuteQueryAsync()
at Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryImplementation(ClientRuntimeContext clientContext, Int32 retryCount, String userAgent)
ServerErrorCode: -2146232832
ServerErrorTypeName: Microsoft.SharePoint.SPException
ServerErrorTraceCorrelationId: [redacted]
ServerErrorValue:
ServerErrorDetails:
. 0ms
pwsh Error: 0 : 2024-07-26 12:37:05.9764 [List instances] [17] [Error] Creating view failed:
The target view cannot be configured as a mobile view.
: at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServerAsync(ChunkStringBuilder sb)
at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryAsync()
at Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQueryAsync()
at Microsoft.SharePoint.Client.ClientContext.ExecuteQueryAsync()
at Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryImplementation(ClientRuntimeContext clientContext, Int32 retryCount, String userAgent)
at Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryRetry(ClientRuntimeContext clientContext, Int32 retryCount, String userAgent)
at PnP.Framework.Provisioning.ObjectHandlers.ObjectListInstance.CreateView(Web web, View view, ViewCollection existingViews, List createdList, PnPMonitoredScope monitoredScope, TokenParser parser, Int32 currentViewIndex, Int32 total) [redacted]
`
I don't think we've configured anything mobile specific on the template file, so not sure why or where this error would be coming form. Any advice would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions