New company not open Because of Approval template

Hi,

I have develop the new functionality of Indent and add the Workflow template of Indent working fine

when I create a new company then the system showing a error.

"Microsoft Dynamics NAV
---------------------------
Could not open the company. The following message was returned: Workflow templates cannot be edited.
You must create a workflow from the template to edit it…
---------------------------
OK "
---------------------------

Screen shot Attached5824.error.png

Hi ,

You will have to debug this means not much .
Perhaps CU2 is whats starts it .

g.

Hi,
When you add a new workflow make sure that you have updated the workflow Init Functions.
Check the Function InitWorkflow in Codeunit 1502.
For a new company it try to load the new Workflow which will only get initialized once you update this function.