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 / Power Automate / Salesforce failed to c...
Power Automate
Unanswered

Salesforce failed to complete task: Message: A task was canceled.

(0) ShareShare
ReportReport
Posted on by 69

When I put a trigger on any table, the trigger fires then I get this error:

 

{
 "error": {
 "code": 502,
 "source": "flow-apim-msmanaged-na-northcentralus-01.azure-apim.net",
 "clientRequestId": "861121dd-5ac5-4217-ac09-ba2556945ff4",
 "message": "BadGateway",
 "innerError": {
 "status": 502,
 "message": "Salesforce failed to complete task: Message: A task was canceled.\r\nclientRequestId: 861121dd-5ac5-4217-ac09-ba2556945ff4",
 "source": "mscorlib",
 "errors": []
 }
 }
}

 

Then I get this error on the front page:

 
Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Xerxel ,

     

    The error message mentioned that the current task has been cancelled, so it cannot be completed, I think the status of the task must be pending, it can be set to complete.

     

    Best Regards,

  • JatinSanghvi Profile Picture
    Microsoft Employee on at

    @Xerxel , from the telemetry data, I can tell that all of the requests from Power Automate to the Salesforce server are getting timed out after waiting for 100 seconds. So some issue appears to be on Salesforce server end.

  • JatinSanghvi Profile Picture
    Microsoft Employee on at

    @Xerxel , did you go through the known issues and limitations documented at https://docs.microsoft.com/en-us/connectors/salesforce/#known-issues-and-limitations (especially those copied below) and ensure that the Salesforce service is properly configured to allow Power Automate integration?

     

    1. Salesforce session settings can block this integration. Please ensure that setting "Lock sessions to the IP address from which they originated" is disabled.
    2. Salesforce API access should be enabled. To verify access settings, go to profile settings for the current user and search for "API Enabled" checkbox.
    3. Note that Salesforce trial accounts do not have API access.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard