Thursday, May 26, 2011

Dynamics AX 2009 Workflow Issues (Continues..)

Issue I have faced during installation and development of workflow:
OS: Windows 7 64 bit Professional

1.Not able to install .net business connector:
.net business connector was not getting installed in W7 system. Fist check, if you have .net 4 client profile installed. If so, remove updates/hot-fixes first, restart and then remove .net 4 profile. If you have installed IIS, then, remove "ASP" windows features under IIS from 'Turn Windows Feature On or Off'. Restart & install Ax .net business connector.

2.Workflow installs with minor error (Orange colour box after completion of installation)
This was because of application pool gets created in IIS server. By default the Enabled 32-Bit application is set to false, hence in 32 bit machine, it will have no issue. But to run the WF in 64 bit OS in 32 bit mode, this property must be set to true for 32 bit application.

3.Workflow configuration and condition test
During testing of condition for workflow configuration, it throws an error for object initialization. I found that, the result of the test button is a form where it displays grid view records. But, the fields under this grid come from AutoReport group in the table. If the AutoReport groups contains some display method, the error appears. After removal of display method from AutoReport group, the error disappears.

4.Workflow Submit button does not displayed in the form
The submit button was not appearing in the form. I have some workflow configuration and one active version. But when I set the configuration as “Default”, the submit button appears.

5.Target date not found in work calendar error of Workflow in Dynamics Ax
http://cid-f2ec589e221a4db0.skydrive.live.com/self.aspx/.Public/Dynamics%20Ax%202009%20Workflow/Workflow%20Target%20date%20error%20and%20solution.docx

6. For any issue/error - try to dig into the class called: SysWorkflowEventDispatcher
Mos of the issue can be comprehend by looking in the class method called - onWorkItemCreate().
The common errors are:
The _workItemContext parameter cannot be null.

-or-

The SysWorkflowTable record was not found.

-or-

The WorkflowElementTable record was not found.

-or-

The WorkflowStepTable record was not found.

-or-

Failed to create an instance of the SysDictWorkflowElement Class.

-or-

The work item could not be created; insufficient rights for the user.

-or-

The work item could not be created; the originator, sole approver and final approver all map to the same user.

-or-

Workflow document not defined.

-or-

Query name must be valid.

2 comments:

  1. Hi Dipankar,

    There is error saying that "Error Execting code . Tree Object Not intialized " and follwed by path which arrises from SysDictWorkflowElement from method getCompletingOutcome from line 10.This error arises when running tutorial_workflowprocessor . We have tried different config . Can you give an idea about how to solve this error

    ReplyDelete
  2. Hi Dipankar,

    There is error saying that "Error Execting code . Tree Object Not intialized " and follwed by path which arrises from SysDictWorkflowElement from method getCompletingOutcome from line 10.This error arises when running tutorial_workflowprocessor . We have tried different config . Can you give an idea about how to solve this error

    ReplyDelete