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)

This workflow job was canceled because the workflow that started it included an infinite loop

(0) ShareShare
ReportReport
Posted on by 35

Hi 

I have create a workflow that run on status change , this is my scenario( when a button click my workflow start create a custom activity and wait for complete or cancel this custom activity after that there are a change status on parent form and rest of the workflow run on form change status and create another custom activity for users in process .when i complete all of the custom activities it's ok and work correctly but when i cancel and return to back steps and complete again .i have a error 

This workflow job was canceled because the workflow that started it included an infinite loop. Correct the workflow logic and try again

i think the logic of the my flow is true but i can't understand why i see this error 

Can anybody help out me in this?

sorry if my English is bad...

 

 

*This post is locked for comments

I have the same question (1)
  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator on at

    Hi Meysam Heydari,

    Can you post screenshots of your workflow?

  • Suggested answer
    Alexandr J.  Profile Picture
    246 on at

    Hi Meysam,

    maybe you exceeded some limits, try to check this topics:

    http://rokhri.com/blog/crm-2011-this-workflow-job-was-canceled-because-the/

    https://sliong.wordpress.com/2012/05/29/crm-2011-executioncontext-depth-and-time-limit-and-scheduled-task/

    https://community.dynamics.com/crm/f/117/t/180349

    Otherwise best way is to share printscreen of your workflow, maybe you just overlook some business logic with status change, so we can check. 

    Kind regards,

    Alex

  • Zahra faraji Profile Picture
    12 on at

    The error is triggered because, by default, CRM only allows for up to eight nested child workflows. When you attempt to run more, CRM will recognize it as an infinite loop. Even though you typically want to avoid a scenario where you would be calling more than eight child workflows, you may sometimes need to. So what do you do then?

    If you have an on-premises CRM solution and have access to the SQL database, you can increase the maximum limit. While this is unsupported, the setting is generally safe to do as long as you are accurate when you are typing the change into the database.

    To increase the limits, follow the steps below:

    1. Locate the setting in the MSCRM_CONFIG database in the table deploymentproperties.

    2. Find the columnname called MessageProcessorMaximumDepth.

    3. Update the value in that column.

    powerobjects.com/.../

    4. After updating the value, complete an IS reset on the CRM application server

  • Suggested answer
    muhammad.arshad Profile Picture
    45 on at
    Thanks @Zahra, I tried your steps and was able to resolve my issue. I would mark it answer.
     
    ********************** START ********************
     
    -- select * from DeploymentProperties
    update DeploymentProperties SET IntColumn=16 -- old IntColumn=8
    WHERE ColumnName='MessageProcessorMaximumDepth';
     
    ********************** END ********************
     
    Thank you,
    Arshad

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