You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem on a couple of tenants. I have a workflow that unpublish some content item if them are expired, by a rule that I have set. In this days I have noticed this error message on my production instance:
2022-11-11 00:00:03.1426-ERROR|...|0HMM2KOUF6J9P||OrchardCore.Workflows.Services.WorkflowManager|An unhandled error occurred while executing an activity. Workflow ID: '462'. Activity: '4jtt1j6he8zzmyccsq1rjvjr54', 'UnpublishContentTask'. Putting the workflow in the faulted state. System.InvalidOperationException: Not the latest version.
at OrchardCore.ContentManagement.DefaultContentManager.UnpublishAsync(ContentItem contentItem)
at OrchardCore.Contents.Workflows.Activities.UnpublishContentTask.ExecuteAsync(WorkflowExecutionContext workflowContext, ActivityContext activityContext)
at OrchardCore.Workflows.Services.WorkflowManager.ExecuteWorkflowAsync(WorkflowExecutionContext workflowContext, ActivityRecord activity) at OrchardCore.ContentManagement.DefaultContentManager.UnpublishAsync(ContentItem contentItem)
at OrchardCore.Contents.Workflows.Activities.UnpublishContentTask.ExecuteAsync(WorkflowExecutionContext workflowContext, ActivityContext activityContext)
at OrchardCore.Workflows.Services.WorkflowManager.ExecuteWorkflowAsync(WorkflowExecutionContext workflowContext, ActivityRecord activity)
Could be useful to have an Unpublish task that allow to unpublish some content item without check if it is the latest version? I have to worry about this issue?
Thank you
PS. I presume this issue could be related to this one #12786 because I don't have updated the Lucene index after a lock. But, If you believe, could be useful to have workflow task that raise up error without interrupt the workflow execution to allow processing over all other items that doesn't generate exception.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a problem on a couple of tenants. I have a workflow that unpublish some content item if them are expired, by a rule that I have set. In this days I have noticed this error message on my production instance:
Could be useful to have an Unpublish task that allow to unpublish some content item without check if it is the latest version? I have to worry about this issue?
Thank you
PS. I presume this issue could be related to this one #12786 because I don't have updated the Lucene index after a lock. But, If you believe, could be useful to have workflow task that raise up error without interrupt the workflow execution to allow processing over all other items that doesn't generate exception.
Beta Was this translation helpful? Give feedback.
All reactions