Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Workflow Timeout problems

Posted on by 195

Goodday,

We have Dynamics CRM 365 On-Premise 8.2.0.749

I have some problems with a workflow (async) that contains a Timeout.

  1. The workflow has a timeout until a certain date (or time, doesn't matter I have done a test with a timeout of 5 minutes). When it reaches the timeout it is told to do a check if a certain date is filled with a action if the date is indeed filled.
    The problem is that if the date is filled when the workflow is triggered, then emptied, when the timeout is reached the check still sees the date as filled and not as empty! 
    Does a timed-out workflow also 'remember' the values on the record from when the workflow was triggered?

  2. The workflow has a timeout to a date filled on the Case. The workflow is triggered on creation of the Case, or a change of the date field. If we empty the field, it also triggers the workflow with a time-out to 31-12-9999 (7.981 years from now)

*This post is locked for comments

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Workflow Timeout problems

    Hi,

    basically,  i want to create a record with some values. For the time out, if user change something, i want to compare is the value same as  where the time it was created, if not, do something. You can take a look on below, that is what the workflow will do.

    www.youtube.com/edit;video_id=lhUVDon0h9c

    www.youtube.com/edit;video_id=NS7cb8w0o-M

    Perhaps you can show us your setting,

  • Erik Coppens Profile Picture
    Erik Coppens 195 on at
    RE: Workflow Timeout problems

    I dont understand the screenshot....?

    Yes, that is exactly what i want the screenshot to do. After reaching the timeout period, it needs to a last check to see if the date is filled and if the date is empty, to stop the workflow.

    But even though the date was made blank (after the workflow was triggered but before the timeout period was reached) the check condition did not work and the workflow was not stopped.

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Workflow Timeout problems

    Hi,

    For the first question,

    yes it can remember if you do something before go into time out condition, see below picture

    5857.25.png

    For question 2, 

    - have you ever consider to stop the workflow if the date is empty. 

  • Suggested answer
    Wayne Walton Profile Picture
    Wayne Walton 13,726 on at
    RE: Workflow Timeout problems

    The bast way to handle that is with an alternate timeout that happens no matter what.  Basically, make a path that quits the workflow about 30 minutes past the absolute last time the workflow should ever execute.  This will prevent endless workflows.  

    Also, I would put in a check condition on your workflow to sanity-check the date so it doesn't create actions years into the future.  

    Basically, the field isn't nulled automatically.  The other thing you might do is you can explicitly null that field with a Business Rule.  In Business Rules, Clear equals Null.  Then you can do your "Contains Data" check against the Date field.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans