Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant deploy item display templates to the office 365 #1142

Open
maratbakirov opened this issue Apr 11, 2022 · 0 comments
Open

cant deploy item display templates to the office 365 #1142

maratbakirov opened this issue Apr 11, 2022 · 0 comments

Comments

@maratbakirov
Copy link
Contributor

some time ago within last month we started seeing the exception below.
packages used:

the core is the incorrect content type ids,
FilterDisplayTemplateModelHandler.cs
should have
item[BuiltInInternalFieldNames.ContentTypeId] = "0x0101002039C03B61C64EC4A04F5361F385106604";
as opposed to current incorrect
item[BuiltInInternalFieldNames.ContentTypeId] = "0x0101002039C03B61C64EC4A04F5361F38510660400F643FF79F6BD764F8A469B6F153396EE";

ItemDisplayTemplateModelHandler.cs
should have
item[BuiltInInternalFieldNames.ContentTypeId] = "0x0101002039C03B61C64EC4A04F5361F385106603";

as opposed to
item[BuiltInInternalFieldNames.ContentTypeId] = "0x0101002039C03B61C64EC4A04F5361F38510660300500DA5E";

it worked before but the code relies on the list content type ids that have changed.

p.s. error we are getting is:

Error message : There was an error while provisioning definition. Check ModelNode prop., Error details :Type = SPMeta2.Exceptions.SPMeta2ModelDeploymentException
Message = There was an error while provisioning definition. Check ModelNode prop.
Source = SPMeta2
ModelNode = Node value: [ItemDisplayTemplateDefinition] - Title:[Featured Content] FileName:[Item_DOH_FeaturedContent.html]
TargetSite = Void Traverse(System.Object, SPMeta2.Models.ModelNode)
StackTrace = at SPMeta2.Services.Impl.DefaultModelTreeTraverseService.Traverse(Object modelHost, ModelNode modelNode)
at SPMeta2.Services.Impl.DefaultModelTreeTraverseService.<>c__DisplayClass13_0.b__0(Object childModelHost)
at SPMeta2.CSOM.ModelHandlers.FolderModelHandler.WithResolvingModelHost(ModelHostResolveContext modelHostContext)
at SPMeta2.Services.Impl.DefaultModelTreeTraverseService.Traverse(Object modelHost, ModelNode modelNode)
at SPMeta2.Services.Impl.DefaultModelTreeTraverseService.<>c__DisplayClass13_0.b__0(Object childModelHost)
at SPMeta2.CSOM.ModelHandlers.FolderModelHandler.WithResolvingModelHost(ModelHostResolveContext modelHostContext)
at SPMeta2.Services.Impl.DefaultModelTreeTraverseService.Traverse(Object modelHost, ModelNode modelNode)
at SPMeta2.Services.Impl.DefaultModelTreeTraverseService.<>c__DisplayClass13_0.b__0(Object childModelHost)
at SPMeta2.CSOM.ModelHandlers.FolderModelHandler.WithResolvingModelHost(ModelHostResolveContext modelHostContext)
at SPMeta2.Services.Impl.DefaultModelTreeTraverseService.Traverse(Object modelHost, ModelNode modelNode)
at SPMeta2.Services.Impl.DefaultModelTreeTraverseService.<>c__DisplayClass13_0.b__0(Object childModelHost)
at SPMeta2.CSOM.ModelHandlers.ListModelHandler.WithResolvingModelHost(ModelHostResolveContext modelHostContext)
at SPMeta2.Services.Impl.DefaultModelTreeTraverseService.Traverse(Object modelHost, ModelNode modelNode)
at SPMeta2.Services.Impl.DefaultModelTreeTraverseService.<>c__DisplayClass13_0.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 SPMeta2.CSOM.Services.CSOMProvisionServiceExtensions.DeployWebModel(CSOMProvisionService modelHost, ClientContext context, ModelNode model)

maratbakirov added a commit to maratbakirov/spmeta2 that referenced this issue Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant