none
Notify on workflow errors (2013 workflows) RRS feed

  • Question

  • Using SharePoint Online, on a list, I want to notify an administrator when a workflow fails. I have found how to do this on 2010 workflows (link below), but can't figure out how to do this on a 2013 workflow.

    I had imagined this could be done using alerts on a view but can't get this to work for 2013 workflows.

    Notify on 2010 workflow failure:

    https://wonderlaura.com/2011/06/29/get-notified-of-workflow-errors/

    Thanks in advance.

    Thursday, April 5, 2018 9:49 AM

Answers

  • Hi PetyrBaelish,

    Sorry for giving your confusion.

    For workflow 2013, it will not log the workflow 2013 instance to the workflow history list.

    It will only can log workflow 2013 instance to workflow history list if you add the “log to history list” action in the workflow 2013.

    So we can only set the notifications on the workflow 2010 which has the error according to the article below.

    Get Notified of Workflow Errors

    https://wonderlaura.com/2011/06/29/get-notified-of-workflow-errors/  

    There is no OOB method to set the notifications on workflow 2013 when the workflow has error.

    There is a solution.

    We can develop a project by developing code.

    Then we can monitor the workflow 2013 by HTTP Traffic Tracing or Database Log. If there is a workflow which has error and then send the email.

    More reference:

    SharePoint 2013: Workflow Debug/Diagnosis.

    http://ranaictiu-technicalblog.blogspot.sg/2013/03/sharepoint-2013-workflow-debugdiagnosis.html

    Best regards,

    Sara Fan


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Friday, April 13, 2018 9:43 AM
    Moderator

All replies

  • Hi PetyrBaelish,

    You could filter the workflows according to the event type in the workflow history list.

    If the event type is 10, it indicates the workflow error. The event type can work on workflow 2010 and workflow 2013.

    If the workflow has error and it will be logged in the workflow history list.

    You could create a view and create filter “Event Type” is equal to 10.

    But we cannot filter on the “Event Type” column directly. Because the column type of the “Event Type” column is Event Type.

    Then we can create a new column with “Number” column type and copy the content of the “Event Type” column to the new column. And create the filter: the new column is equal to 10.

    And you can set the alert on the view.

    More reference:

    Workflow History – Event Type Numbers Decoded.

    https://www.spjeff.com/2010/01/29/workflow-history-event-type-numbers-decoded-2/

    Best regards,

    Sara Fan


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Friday, April 6, 2018 9:45 AM
    Moderator
  • Hi PetyrBaelish,

    If the reply is helpful to you, you could mark the reply as answer. Thanks for your understanding.

    Best regards,

    Sara Fan


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Monday, April 9, 2018 5:28 AM
    Moderator
  • Hi Sarah,

    I haven't tested this yet, but there's no option for "Suspended" in the different Event Types, so I'm wondering if suspended will be the same as In progress (which wouldn't allow is to identify a probem), or whether Suspended would become one of the other status's.

    Tuesday, April 10, 2018 9:01 AM
  • Hi PetyrBaelish,

    Sorry for giving your confusion.

    For workflow 2013, it will not log the workflow 2013 instance to the workflow history list.

    It will only can log workflow 2013 instance to workflow history list if you add the “log to history list” action in the workflow 2013.

    So we can only set the notifications on the workflow 2010 which has the error according to the article below.

    Get Notified of Workflow Errors

    https://wonderlaura.com/2011/06/29/get-notified-of-workflow-errors/  

    There is no OOB method to set the notifications on workflow 2013 when the workflow has error.

    There is a solution.

    We can develop a project by developing code.

    Then we can monitor the workflow 2013 by HTTP Traffic Tracing or Database Log. If there is a workflow which has error and then send the email.

    More reference:

    SharePoint 2013: Workflow Debug/Diagnosis.

    http://ranaictiu-technicalblog.blogspot.sg/2013/03/sharepoint-2013-workflow-debugdiagnosis.html

    Best regards,

    Sara Fan


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Friday, April 13, 2018 9:43 AM
    Moderator

  • Hi PetyrBaelish,

    If the reply is helpful to you, you could mark the reply as answer. Thanks for your understanding.

    Best regards,

    Sara Fan


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Monday, April 16, 2018 1:19 AM
    Moderator
  • Hi PetyrBaelish,

    I am checking to see how things are going there on this issue. Please let us know if you would like further assistance.

    If the issue was resolved, you can mark the helpful post as answer to help other community members find the helpful information quickly.

    Best regards,

    Sara Fan


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Friday, April 20, 2018 7:30 AM
    Moderator