web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Workflow Timeout problems

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Suggested answer
    Wayne Walton Profile Picture
    13,730 on at

    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.

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    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. 

  • Erik Coppens Profile Picture
    195 on at

    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
    33,628 on at

    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,

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans