How to resolve Dynamics Workflow - Action Failed

This question is not answered

Hi,

I am not able to send or receive email when working with workflow, however, I am able to receive desktop notification.

In the event log is not really heling since I don't have an event ID:

 

The description for Event ID 0 from source Microsoft.Dynamics.Workflow cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event:

Action:

NotificationEventManager.OnWorkflowCompleted

Current User LogOnName:

PREMIERFOODS\MRadmin

Input parameters:

Unable to serialize the input parameters.

Exception type:

System.NullReferenceException

Exception message:

Object reference not set to an instance of an object.

Stack Trace:

at Microsoft.Dynamics.Workflow.NotificationService.GetEmailTaskSection(DetailedNotification note, Int32 taskId)

at Microsoft.Dynamics.Workflow.NotificationService.GetEmailBody(DetailedNotification note, Boolean setSent, Int32 taskId)

at Microsoft.Dynamics.Workflow.NotificationService.SendEmail(Collection`1 noteCollection, String emailRecipient, Int32 taskId)

at Microsoft.Dynamics.Workflow.NotificationEventManager.CreateDetailedNotification(BusinessObjectKey businessObjectKey, OrganizationKey organizationKey, DynamicsWorkflowKey dWorkflowKey, String comments, String assignedTo, NotificationAction actionTaken, String workflowStepName, CaseInsensitiveStringCollection delegatedApprovers, Nullable`1 dueDate, Boolean wasSent, String businessObjectType, String actionDescription, StepType stepType, Int32 taskId)

at Microsoft.Dynamics.Workflow.NotificationEventManager.CreateDetailedNotification(BusinessObjectKey businessObjectKey, OrganizationKey organizationKey, DynamicsWorkflowKey dWorkflowKey, String comments, String assignedTo, NotificationAction actionTaken, String workflowStepName, String delegatedApprover, Nullable`1 dueDate, Boolean wasSent, String businessObjectType, String actionDescription, StepType stepType)

at Microsoft.Dynamics.Workflow.NotificationEventManager.OnWorkflowCompleted(Object sender, WorkflowCompletedEventArgs eventArgs)

 

the message resource is present but the message is not found in the string/message table

All Replies
  • Hi Patrick,

    Are you able to log into the Dynamics Security Console and click on the Policy node without error? If you receive an error the best option is to reinstall Web Services. Also have you setup the SMTP settings in SharePoint?

  • Hi Jonathan,

    I am able to log into the Dynamics Security Console and I can see all the roles without any problem, I am a superuser.

    I have setup the SMTP settings in SharePoint.

    When adding a user to a group, the user can receive the welcome email from the wrokflow website, and my workflow for GL approval works perfectly.

    I can do all tasks in GP and from the workflow website ( approve, reject,.... ).

    The only problem that I have is the email notification, I am able to receive the desktop notfication.

    In the email, I have the following subject: "Dynamics Workflow - Action Failed" and the following message: "A workflow exception occurred. Please check the Dynamics event log. ".

    And the event log shows what is in my previous message.

    I have reinstall Workflow and Sharepoint for the second time, so I really don't know what is causing this.