Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

How to resolve Dynamics Workflow - Action Failed

(0) ShareShare
ReportReport
Posted on by

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

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: How to resolve Dynamics Workflow - Action Failed

    Hi Brady,

    I had to reinstall workflow, and I had to reboot the server. There were some updates that were due and that did stop the problem.

    I did face a similar situation last month and that was caused by a time delay between the GP application and the workflow website.

    What I will suggest will be :

    1.      Make sure that you Web services are working properly, the users can open the config console without receiving an error message.

    2.      Are you using the workflow administrator as an approver?

    3.      Make sure that you can see all the WF users from the lookup in the Active directory (when creating the WF steps and that you can see their respective username and email addresses).

    4.      Is the desktop notification working for you? If yes , then  disable it.

    I hope that it will help you or you will have to contact MS support.

    Regards

    Patrick Kalemba

  • Brady W Riopelle Profile Picture
    545 on at
    RE: How to resolve Dynamics Workflow - Action Failed

    Hi Patrick,

    Did you ever get this issue resolved for you? I am facing the exact same issue. I've tried reinstalling Web Services and Workflow and neither helped. I have also tried it on a completely different environment but got the same result. I am on SQL 2008 R2, Server 2008 R2, SharePoint Server 2010 w/ BP, Workflow 2010 on different web app than BP. Everything works in both environments except for the emails. I have also setup email settings from SharePoint and it works fine except for WorkFlow. Below is the error in Event Viewer:

    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.OnTaskCreated

    Current User LogOnName:

    VIRTTEST\shareservice

    Input parameters:

    Unable to serialize the input parameters.

    Exception type:

    System.InvalidOperationException

    Exception message:

    The Email did get sent

    Stack Trace:

      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.OnTaskCreated(Object sender, WorkflowTaskCreatedEventArgs eventArgs)

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

  • Community Member Profile Picture
    on at
    Re: How to resolve Dynamics Workflow - Action Failed

    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.

  • Jonathan Fear Profile Picture
    on at
    Re: How to resolve Dynamics Workflow - Action Failed

    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?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,865 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans