web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / 502 Bad Gate way - Sal...
Power Automate
Unanswered

502 Bad Gate way - Salesforce

(0) ShareShare
ReportReport
Posted on by 84

Hello all,

 

I have a flow set up that will parse text from an email that is received into a shared mailbox for terminations. It grabs the business transferee email address and then does a Salesforce query to get the contact ID of said person. It then creates a case in Salesforce using dynamic values adding the email subject line to the subject line, the body to the description, and the contact ID so the case has the correct contact. 

 

The other required fields to open the case which are static are Salesforce Object Type, Case Status, Case Priority, Case Business Hours ID, Case Case Type, Case Category, Case Sub-Category. 

 

I have tested this to success reusing a trigger from a email received in the shared mailbox, which created the case. 

 

When I put this into production, the case creation fails with the following:

 

DH2023_0-1711637110771.png

{
  "error": {
    "code"502,
    "source""flow-apim-unitedstates-XXXXXXXXX",
    "clientRequestId""XXXXXXXX",
    "message""BadGateway",
    "innerError": {
      "status"502,
      "message""Salesforce failed to complete task: Message: We can't save this record because the “Case Actions” process failed. Give your Salesforce admin these details. Probably Limit Exceeded or 0 recipients\n Error ID: XXXXXX",
      "error": {
        "message"null,
        "code""Unknown",
        "originalMessage"null
      },
      "source""Salesforce.Common",
      "errors": []
    }
  }
}
 
ANY help is appreciated! 
Categories:
I have the same question (0)
  • Verified answer
    readystart Profile Picture
    7 on at

    Based on the response, the 'Case Actions' flow/process failed in Salesforce due to a platform governor limit or no recipient successfully satisfying the conditions in your production environment for this execution instance relative to your test case (uncertain what Salesforce environment your successful test was executed against, sandbox, scratch org, etc).

     

    Coordinating with the Salesforce application team to debug the 'Case Action' flow/process and it's execution in production against  your test case debugs should help. Checking that the Salesforce integration user account performing this action has the appropriate permissions in production relative to your successful test may also help.

  • DH2023 Profile Picture
    84 on at

    This ended up being a mistake on the HR side and this field was moved! Thank you for the reply. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard