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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / "Infinite Loop in Bot ...
Copilot Studio
Suggested Answer

"Infinite Loop in Bot Content" error but no error in Topics

(0) ShareShare
ReportReport
Posted on by
I am trying to build a chatbot for our company's website, and I've built topics so far around sick days, pto, and holidays. I built the topic so that when someone enters a phrase around any of these three topics, it will trigger a question that asks "Where are you located?"
 
I have set up a custom entity called "Employee Location" with "US based" and "India based" as the two options. For each of the above mentioned topics, I added "Employee Location" in the "Identify" section of the triggered question. I also created a variable called "VarLocation" to save user responses.
 
Branching down from my question, I added two conidtions: "VarLocation is equal to US based" and "VarLocation is equal to India based". Based on what the user selects, it should trigger a message describing the sick day/pto/holiday policy based on their location.
 
I have no errors in any of these three topics. However, when I try to test the agent by typing in "how many sick days do we get?" for example, it gives me this error message: "Error Message: Action cr56b_liventusSharePointAssistant.topic.SickDays.main.question_sZZJzF was executed more than 500 times in a row. This indicates a cycle in execution of the dialog and hence dialog execution will be terminated. Error Code: InfiniteLoopInBotContent Conversation Id: cd5f13da-cacf-4862-ad88-b526a2d8dd4b Time (UTC): 2024-12-03T17:29:50.193Z"
 
I don't understand what the issue is or how to fix it, as none of my topics have any errors and every tutorial I've looked at makes it seem as though I've set my topics up correctly. Any help would be much appreciated. Photos of "Sick Days" topic attached for reference.
Screenshot 2024-12-03 113549.png
Screenshot 2024-12-03 113533.png
  • Suggested answer
    Artur Stepniak Profile Picture
    1,539 Moderator on at
    Hello,
     
    have you tried to use "End topic" in the topics that you've prepared, so that it gets cleaned? Maybe it goes into an infinite loop due to not ending the topic/not redirecting to any other topic.
     
    In case of any other questions, let me know. If the answer helped you, mark it, so that others can benefit from it.
     
    Best regards,
     
    Artur Stepniak

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Copilot Studio

#1
Mohsin Ali Profile Picture

Mohsin Ali 386

#2
Valantis Profile Picture

Valantis 263 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 214 Super User 2026 Season 2

Last 30 days Overall leaderboard