Skip to main content

Notifications

Power Automate - Using Connectors
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 67

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:

 
  • JatinSanghvi Profile Picture
    JatinSanghvi on at
    Re: Salesforce failed to complete task: Message: A task was canceled.

    @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.
  • JatinSanghvi Profile Picture
    JatinSanghvi on at
    Re: Salesforce failed to complete task: Message: A task was canceled.

    @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.

  • v-bacao-msft Profile Picture
    v-bacao-msft on at
    Re: Salesforce failed to complete task: Message: A task was canceled.

     

    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,

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard

Featured topics