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 / The connection breaks ...
Copilot Studio
Suggested Answer

The connection breaks repeatedly at random times.

(0) ShareShare
ReportReport
Posted on by
We have developed an agent that is integrated with ServiceNow; however, the connection frequently breaks.
Categories:
I have the same question (0)
  • Suggested answer
    Sunil Kumar Pashikanti Profile Picture
    2,318 Moderator on at
     
    You have not provided any details that can help to diagnose the issue, can you provide the below details?
    1. Which authentication method is being used?
    2. Is the connection user‑based or service account‑based?
    3. Which ServiceNow tables are queried?
    4. Do failures occur under load/high usage?
    5. Is this via Copilot Studio, Power Automate, or both?
    6. Are you seeing timeouts or 401/403 errors?

    What is happening (simple explanation)
    Power Platform (Power Apps / Power Automate / Copilot Studio) talks to ServiceNow using REST APIs and authentication tokens.
    Random disconnects usually occur when:
    • The auth token expires and cannot refresh cleanly
    • ServiceNow takes too long to respond
    • API calls exceed rate or execution limits
    • A user‑based login is used instead of a stable service account
    This often looks “random” but is actually tied to timeouts, load, or auth refresh
     
     

    Most common root causes (What to check first)
    1. Authentication type
    If you are using:
          User login (Entra ID user sign‑in)
          SSO‑based accounts
    Tokens expire or sessions are revoked > connection breaks
    Recommended
    • Service account in ServiceNow
    • OAuth (client credentials / certificate) or Basic Auth (service account)
    Microsoft explicitly recommends this for stable connections
     
    2. ServiceNow API timeouts
    ServiceNow REST APIs:
    • Default timeout = 30 seconds
    • Long queries get silently cancelled
    • Still may return HTTP 200 with an error inside
    This causes random‑looking failures in agents and flows
    Recommended
    • Limit records (sysparm_limit)
    • Avoid dot‑walked filters
    • Fetch only required fields

    3. Throttling / rate limits
    ServiceNow limits:
    • ~600 API calls per minute per connection
    • Agents can exceed this quickly
    Once hit, calls fail until the window resets
    Recommended
    • Add caching
    • Batch requests
    • Move heavy logic to Power Automate or async pattern
     
    4. Connector / action timeout in Copilot Studio
    Copilot Studio tools have hard execution limits.
    If ServiceNow replies slowly:
    • Agent times out
    • User sees disconnect or error
    Recommended
    • Make ServiceNow calls faster
    • Use background flows + status polling pattern

    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 277

#2
11manish Profile Picture

11manish 206

#3
sannavajjala87 Profile Picture

sannavajjala87 156 Super User 2026 Season 1

Last 30 days Overall leaderboard