This repository was archived by the owner on Mar 19, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
This repository was archived by the owner on Mar 19, 2025. It is now read-only.
SPMeta2.Exceptions.SPMeta2ModelDeploymentException : Field or property "vti_iplabelid" does not exist. #1130
Copy link
Copy link
Open
Labels
Description
Hi,
I'm trying to deploy SharePoint online intranet solution which used SPMeta2. There are more than 15 sub sites within the site collection. Therefore the deployment is split in to few modules according to the sub sites.
But the deployment getting fail time to time with following error. Can someone help me on this?
Unhandled Exception: SPMeta2.Exceptions.SPMeta2ModelDeploymentException: There was an error while provisioning definition. Check ModelNode prop. ---> Microsoft.SharePoint.Client.ServerException: Field or property "vti_iplabelid" does not exist. at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream) at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse() at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb) at Microsoft.SharePoint.Client.ClientRequest.ExecuteQuery() at Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQuery() at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery() at SPMeta2.CSOM.Services.Impl.DefaultClientRuntimeContextService.InternalExecuteQuery(ClientRuntimeContext context) at SPMeta2.CSOM.Services.Impl.DefaultClientRuntimeContextService.ExecuteQuery(ClientRuntimeContext context) at SPMeta2.CSOM.Extensions.ClientRuntimeContextExtensions.ExecuteQueryWithTrace(ClientRuntimeContext context) at SPMeta2.CSOM.ModelHandlers.ListModelHandler.LoadCurrentList(Web web, ListDefinition listModel) at SPMeta2.CSOM.ModelHandlers.ListModelHandler.WithResolvingModelHost(ModelHostResolveContext modelHostContext) at SPMeta2.Services.Impl.DefaultModelTreeTraverseService.Traverse(Object modelHost, ModelNode modelNode) --- End of inner exception stack trace --- at SPMeta2.Services.Impl.DefaultModelTreeTraverseService.Traverse(Object modelHost, ModelNode modelNode) at SPMeta2.Services.Impl.DefaultModelTreeTraverseService.<>c__DisplayClass13_0.<Traverse>b__0(Object childModelHost) at SPMeta2.CSOM.ModelHandlers.WebModelHandler.WithResolvingModelHost(ModelHostResolveContext modelHostContext) at SPMeta2.Services.Impl.DefaultModelTreeTraverseService.Traverse(Object modelHost, ModelNode modelNode) at SPMeta2.Services.Impl.DefaultModelTreeTraverseService.<>c__DisplayClass13_0.<Traverse>b__0(Object childModelHost) at SPMeta2.CSOM.ModelHandlers.WebModelHandler.WithResolvingModelHost(ModelHostResolveContext modelHostContext) at SPMeta2.Services.Impl.DefaultModelTreeTraverseService.Traverse(Object modelHost, ModelNode modelNode) at SPMeta2.Services.ModelServiceBase.ProcessModelDeployment(Object modelHost, ModelNode modelNode) at SPMeta2.Services.ModelServiceBase.DeployModel(ModelHostBase modelHost, ModelNode model) at SPMeta2.CSOM.Services.CSOMProvisionService.DeployModel(ModelHostBase modelHost, ModelNode model) at
Intranet.Release.Models.DepartmentSites.EnsureAboutUsRootWeb() in D:\a\1\s\Intranet.Release\Models\DepartmentSites.cs:line 207 at Intranet.Release.Models.MainSiteCollection.EnsureWebIA() in D:\a\1\s\Intranet.Release\Models\MainSiteCollection.cs:line 578 at PTT.Intranet.Release.Managers.ProvisioningManager.ProvisionMainSiteCollection() in D:\a\1\s\Intranet.Release\Managers\ProvisioningManager.cs:line 43 at Intranet.Release.Program.Main(String[] args) in D:\a\1\s\Intranet.Release\Program.cs:line 33
--
Process completed with exit code -532462766 and had 1 error(s) written to the error stream.
Some times this deploy without any error. and some times randomly break it in sub site.
SharePoint API
Which version of SharePoint runtime do you use?
- CSOM / SSOM / O365
SPMeta2 API
SPMeta2 versions :
Microsoft.SharePointOnline.CSOM.16.1.6518.1200
SPMeta2.Core.1.2.130
SPMeta2.Core.Standard.1.2.130
SPMeta2.CSOM.Foundation-v16.1.2.130
SPMeta2.CSOM.Standard-v16.1.2.130
### SPMeta2 model
// Sample code for one model that I used to deploy. There are more than 10
public void EnsureSiteIA()
{
_notificationManager.NotifyInformation("Ensuring Site Collection IA..");
var localContext = _ctx;
using (localContext)
{
var siteModel = SPMeta2Model.NewSiteModel(site =>
{
#region Features
site.AddSiteFeature(BuiltInSiteFeatures.SharePointServerStandardSiteCollectionFeatures.Inherit(
feature =>
{
feature.Enable = true;
feature.ForceActivate = true;
}));
site.AddSiteFeature(BuiltInSiteFeatures.SearchServerWebPartsAndTemplates.Inherit(
feature =>
{
feature.Enable = true;
feature.ForceActivate = true;
}));
#endregion
//Fields
//Content types
//Security groups
});
//Exception throw in below line and it doesn't matter which site you are in and its random
//How ever it failed when you try to deploy few models together
_provisioningService.DeployModel(SiteModelHost.FromClientContext(localContext), siteModel);
}
_notificationManager.NotifySuccess("Site Collection Artefacts provisioned");
}