Skip to content

InvalidOperationException thrown from OrchardCore.ContentTypes.LuceneRecipeEventHandler #17492

Answered by Piedone
DotCat1985 asked this question in Q&A
Discussion options

You must be logged in to vote

What's in the ContentDefinition step? That's what this fails on. You can check it out and look for hints here:

if (context.Name == "ReplaceContentDefinition" || context.Name == "ContentDefinition")
{
var step = context.Step.ToObject<ContentDefinitionStepModel>();
foreach (var contentType in step.ContentTypes)
{
foreach (var partDefinition in contentType.ContentTypePartDefinitionRecords)
{
if (partDefinition.Settings != null)
{
if (partDefinition.Settings.TryGetPropertyValue("ContentIndexSettings", out var e…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Piedone
Comment options

Answer selected by DotCat1985
@DotCat1985
Comment options

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