We purchased Umbraco Plumber license from headquaters.
We installed the license.lic and license.key in folder E:\inetpub\wwwroot\pws2\App_Plugins\Plumber folder
Note: The logged in has the role Workflow Administrators.
But when I try to send any page through Plumber workflow, we are getting this error
TypeError: Cannot read properties of undefined (reading 'includes')
Plumber.Core.Processes.WorkflowProcess
"No approval flow set for document 1080 or any of its parent documents. Unable to initiate approval task."
System.Exception: Exception of type 'System.Exception' was thrown.
Plumber.Web.Api.ActionsController
"An error occurred initiating the workflow on node 1080": "No approval flow set for document 1080 or any of its parent documents. Unable to initiate approval task."
Plumber.Core.Exceptions.WorkflowException: No approval flow set for document 1080 or any of its parent documents. Unable to initiate approval task. at Plumber.Core.Processes.WorkflowProcess.InitiateWorkflow(Int32 nodeId, Int32 authorUserId, String authorComment, String scheduledDate, Nullable`1 attachmentId, String variant) at Plumber.Web.Api.ActionsController.Initiate(InitiateWorkflowModel model)
{"TimeStamp":"2023-02-09T11:52:12.5972814","Level":"Error","Message":"\"No approval flow set for document 1080 or any of its parent documents. Unable to initiate approval task.\"","Exception":"System.Exception: Exception of type 'System.Exception' was thrown.","Properties":{"errorMessage":"No approval flow set for document 1080 or any of its parent documents. Unable to initiate approval task.","SourceContext":"Plumber.Core.Processes.WorkflowProcess","ActionId":"68d2165c-8c08-4f64-b3e1-c8e89d035646","ActionName":"Plumber.Web.Api.ActionsController.Initiate (Plumber.Web)","RequestId":"8000075d-0000-fb00-b63f-84710c7967bb","RequestPath":"/umbraco/backoffice/plumber/actions/Initiate","ProcessId":6072,"ProcessName":"w3wp","ThreadId":214,"ApplicationId":"4f2735a4aa5e8f3bd6a8c87fed500eaaea746981","MachineName":"TESTSERVER1","Log4NetLevel":"ERROR","HttpRequestId":"5fbc506d-cf3a-4861-b2ed-23c11a890059","HttpRequestNumber":4,"HttpSessionId":"430fb990-5e50-9500-c949-8b1e4a106b75","Application":"TST"}}
More details. Workflow works on node 1080, which is the root node of the site. The error appears when and only when I assoiciate a "Template" in the Info tab of the page! If I don't have a Template assiciated, Plumber works just fine.
Can you offer anymore advise,
Tom
PS Here is the content on my Template.
@using Umbraco.Cms.Web.Common.PublishedModels;
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage
@{
Layout = "FHLBMMELayout";
}
@Model.Name
And here is content of my layout "FHLB MME Layout"
@using Umbraco.Cms.Web.Common.PublishedModels;
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage
@{
Layout = null;
}
@RenderSection("HeadEnd", required: false)
@RenderSection("BodyStart", required: false)
Umbraco Plumber Error
We purchased Umbraco Plumber license from headquaters. We installed the license.lic and license.key in folder E:\inetpub\wwwroot\pws2\App_Plugins\Plumber folder
Note: The logged in has the role Workflow Administrators.
But when I try to send any page through Plumber workflow, we are getting this error
TypeError: Cannot read properties of undefined (reading 'includes')
Plumber.Core.Processes.WorkflowProcess
"No approval flow set for document 1080 or any of its parent documents. Unable to initiate approval task."
System.Exception: Exception of type 'System.Exception' was thrown.
Plumber.Web.Api.ActionsController
"An error occurred initiating the workflow on node 1080": "No approval flow set for document 1080 or any of its parent documents. Unable to initiate approval task."
Plumber.Core.Exceptions.WorkflowException: No approval flow set for document 1080 or any of its parent documents. Unable to initiate approval task. at Plumber.Core.Processes.WorkflowProcess.InitiateWorkflow(Int32 nodeId, Int32 authorUserId, String authorComment, String scheduledDate, Nullable`1 attachmentId, String variant) at Plumber.Web.Api.ActionsController.Initiate(InitiateWorkflowModel model)
{"TimeStamp":"2023-02-09T11:52:12.5972814","Level":"Error","Message":"\"No approval flow set for document 1080 or any of its parent documents. Unable to initiate approval task.\"","Exception":"System.Exception: Exception of type 'System.Exception' was thrown.","Properties":{"errorMessage":"No approval flow set for document 1080 or any of its parent documents. Unable to initiate approval task.","SourceContext":"Plumber.Core.Processes.WorkflowProcess","ActionId":"68d2165c-8c08-4f64-b3e1-c8e89d035646","ActionName":"Plumber.Web.Api.ActionsController.Initiate (Plumber.Web)","RequestId":"8000075d-0000-fb00-b63f-84710c7967bb","RequestPath":"/umbraco/backoffice/plumber/actions/Initiate","ProcessId":6072,"ProcessName":"w3wp","ThreadId":214,"ApplicationId":"4f2735a4aa5e8f3bd6a8c87fed500eaaea746981","MachineName":"TESTSERVER1","Log4NetLevel":"ERROR","HttpRequestId":"5fbc506d-cf3a-4861-b2ed-23c11a890059","HttpRequestNumber":4,"HttpSessionId":"430fb990-5e50-9500-c949-8b1e4a106b75","Application":"TST"}}
Can anyone help?
Thanks
Tom
Hi Tom, can you confirm that you have workflow configured either on node 1080 or on one of its ancestor nodes?
Easiest setup is to add a default workflow to the root node, which all nodes will then inherit until they have their own configuration added.
Nathan:
Thanks for replying.
More details. Workflow works on node 1080, which is the root node of the site. The error appears when and only when I assoiciate a "Template" in the Info tab of the page! If I don't have a Template assiciated, Plumber works just fine.
Can you offer anymore advise,
Tom PS Here is the content on my Template. @using Umbraco.Cms.Web.Common.PublishedModels; @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage @{ Layout = "FHLBMMELayout"; }
@Model.Name
And here is content of my layout "FHLB MME Layout" @using Umbraco.Cms.Web.Common.PublishedModels; @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage @{ Layout = null; } @RenderSection("HeadEnd", required: false) @RenderSection("BodyStart", required: false)
I fixed this error by installing the Umbraco.Workflow v10.0.0 NuGet Package.
is working on a reply...