New company not open

smishrasmishra Member Posts: 28
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 "

Comments

  • KishormKishorm Member Posts: 921
    edited 2016-11-23
    Have you changed the code in the the Workflow Setup codeunit that skips creating workflow templates if some already exist? You would get this error if you did something like that because then it is trying to create the existing workflow templates again.

    You would also get this error if you set the template flag too early when creating your new indent workflow template - this is done right at the end - look at existing code which creates templates.

    Finally you'll also get this if you are trying to create a workflow template twice.

    All the above is related to changes you may have made to the Workflow Setup codeunit.
  • postsauravpostsaurav Member Posts: 708
    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.

    Thanks & Regards,
    Saurav Dhyani

    Do you Know this About NAV?


    Connect - Twitter | Facebook | Google + | YouTube

    Follow - Blog | Facebook Page | Google + Page
Sign In or Register to comment.