you can try increasing the timeout for the get asset activity . additionally, wrap the activity in a retry scope with up to 2 retries to handle any temporary connection issues or delays from orchestrator.
Common Causes for “Get Asset: The response ended prematurely” in UiPath:
Network Connectivity/Proxy Issues: This is a very frequent culprit. The UiPath Robot needs a stable and unobstructed connection to UiPath Orchestrator to retrieve assets.
Proxy Configuration: If your network uses a proxy server, it might be interfering with the communication. UiPath Robot and Assistant need to be correctly configured to work with a proxy.
Firewall Rules: Firewalls (both local and network) can block the necessary ports or connections.
Unstable Network: Intermittent network connectivity can cause the response to be cut off.
Orchestrator Performance/Load: If Orchestrator is under heavy load or experiencing performance issues, it might not be able to send the full response in time.
Asset Configuration/Permissions:
Incorrect Asset Name/Path: Double-check that the asset name used in the “Get Asset” activity in your UiPath Studio workflow exactly matches the asset name in Orchestrator, including case sensitivity. Also, ensure the correct folder path is provided if you are using modern folders.
Insufficient Permissions: The Robot user or the folder where the asset resides might not have the necessary “View” permissions for Assets in Orchestrator.
Timeout Settings:
Activity Timeout: The “Get Asset” activity itself has a Timeout property. If the network or Orchestrator is slow, the default timeout (often 30 seconds) might be too short.
Orchestrator Session Timeout: In some cases, prolonged inactivity might lead to a session timeout with Orchestrator, causing subsequent asset retrieval attempts to fail.
UiPath Version Mismatch/Package Issues:
Studio/Robot/Orchestrator Compatibility: Incompatible versions of UiPath Studio, Robot, and Orchestrator can lead to unexpected behaviors, including communication failures.
Activities Package Version: Sometimes, a specific version of the UiPath.System.Activities package (or other relevant packages) might have issues. Downgrading or upgrading the package version can resolve this.
Background Processes (for “Get Asset: The operation has timed out” which is closely related): If it’s a background process, ensure that the UIPATH_HEADLESS_WITH_USER system environment variable is set to True on the robot machine. Background processes run in a different session context, and this setting can be crucial for asset retrieval.