UiPath Salesforce Integration Service Connection Disconnecting Every 30 Minutes

Hi Everyone

We are currently facing an issue with UiPath Integration Service for Salesforce; connection is automatically disconnecting every 30 minutes from UiPath Connections.

Has anyone encountered this earlier or have any suggestions to solve this ?

Hi @sayan.patra,

If it is getting disconnected every 30 mins then it could be an issue on Salesforce session and not a UiPath bug.

  1. If the session timeout value is set to a fixed value - 30 minutes instead of “None”, Salesforce will force re-auth every 30 min regardless of activity.
  2. Refresh Token Policy on Salesforce should be “Refresh token is valid until revoked”.

Cheers!

Hi @Prashanth_D

  1. Refresh Token Validity Period has set to 30 Days.
  2. This option is not available

Is there any other options?

Hi @sayan.patra,

Refresh token validity is 30 days only controls how long the refresh token itself stays valid before it needs a full re-auth, it does nothing about how often the active session/access token expires.

Here are few other things you can check:

  1. Check App’s Session Timeout Value:
  • Setup → App Manager → your UiPath Connected App → Edit Policies
  • Look for Session Timeout Value, if it’s set to a fixed 30-minute value instead of “None”, the access token/session dies every 30 min regardless of your refresh token settings.
  • Set it to “None” so it uses the system default and doesn’t impose its own timeout.
  1. Also check org/profile-level Session Settings:
  • Setup → Session Settings (org default)
  • Setup → the integration user’s Profile → Session Timeout override (profile timeout always overrides org default if set)
  • If either is 30 minutes, that’s your culprit even with a fine refresh token policy.
  1. Check “Force logout on session timeout”, if enabled, the session is killed outright at timeout rather than allowing a graceful refresh, which would explain the “hard disconnect every 30 min” pattern rather than a silent token refresh.
  2. Check “High Assurance Session Required” on the Connected App, if enabled, it invalidates the whole session (not just re-prompts) at each timeout, forcing full re-auth instead of a refresh-token exchange.
  3. Check Login IP Ranges / IP Relaxation, if UiPath’s IP isn’t in an allowed range and relaxation isn’t set to apply to all IPs, each refresh attempt could be silently failing and forcing a fresh reconnect.

Cheers!

Hi @sayan.patra

Prashanths checklist covers pretty much every session setting, the fast way to skip trial and error is checking salesforces own logs instead of testing one by one

go to Setup, search Login History, filter by the integration user tied to this connection. Every time the session drops there should be a login/logout event there and the Status column usually says the real reason, session timeout, ip restricted, invalid session, wichever it is. That narrows it to one item on Prashanths list instead of you checking all 5 blind

also check Setup, Session Management, shows the active sessions for that user live. If you see it get killed right at 30 min even with jobs running, thats confirms its a hard timeout somewhere and not the polling side doing something weird

one more thing, if none of the org settings show 30 min anywhere, check if theres a Shield session policy applied at permission set level, those override profile settings and dont show up on the regular session page, easy to miss

hope it helps as well :slight_smile: