event logs for workflow failure

sns 9,226 Reputation points
2021-03-10T16:15:14.1+00:00

Get-EventLog -LogName Application -Source "Microsoft-SharePoint Products-SharePoint Foundation" -After "March 10, 2021 02:55:00"

I tried to execute above command to know the SPtimer and workflow related failure issues from particular time, but I did not get any output

issue is as per the workflow logic mail should trigger automatically but no mail is going where it received the mail when triggered manually
so I want to capture event logs for that sharepoint workflow from particular time to certain time.

which application I should look for in the event logs? Please help me on this

Thank you

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,797 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jerry Xu-MSFT 7,921 Reputation points
    2021-03-11T07:07:04.94+00:00

    Hi, @sns ,

    For event log of a workflow, you will need to check the workflow history list. You can access it via browser or export it with a PowerShell script.

    The URL is like this : http://[servername]/[sitename]/lists/Workflow%20History Or open the site using SharePoint designer and then go to All Files from the Site Objects tab from the left side, you will able to see the list.

    And for the issue with the workflow. Not much I can say without checking the actual setup of the workflow. It will be better to provide more information about the workflow.

    As it works when you start it manually, it shall be fine on the actions sending email. The issue shall more be related to triggers you use. Or the if condition which control whether the Email shall be sent, if there is one. So please provide the actual structure of the workflow and more detailed information about the failed trials of the workflow and succeed ones.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.