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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow stop as error Bad...
Power Automate
Answered

Flow stop as error Bad gateway 402 occured. Please help

(0) ShareShare
ReportReport
Posted on by 57
Hi,
My flow unable to run normally as it will stop due to bad gateway error. Please advise how to resolve this issues?
The whole documentation approval flow stuck.
 
"error": {
    "code"502,
    "source""asia-001.azure-apim.net",
    "clientRequestId""7d7d7440-a8bb-4ec3-867b-2a018c08b8c8",
    "message""BadGateway",
    "innerError": {
      "status"502,
      "message""We're sorry, but something went wrong with this file.\r\nclientRequestId: 7d7d7440-a8bb-4ec3-867b-2a018c08b8c8\r\nserviceRequestId: bbfd6b20-6283-4f6f-ae9e-b4d02a58e1d6",
      "error": {
        "message""We're sorry, but something went wrong with this file."
      },
      "source""excelonline-ea.azconn-ea-001.p.azurewebsites.net"
    }
  }
 
Jo9_0-1706689053841.png

 

 

Thank you.

Best regards,

Jo

Categories:
I have the same question (0)
  • Manish Solanki Profile Picture
    15,099 Moderator on at

    Hi @Jo9 

     

    Could you pls show the configurations (input parameters) for "Get tables" action in edit mode?

     

  • Jo9 Profile Picture
    57 on at

    Please find the following edit mode

    Jo9_0-1706703073119.png

     

  • Jo9 Profile Picture
    57 on at

    or code view?

    {
        "inputs": {
            "host": {
                "connectionName""shared_excelonlinebusiness",
                "operationId""GetTables",
                "apiId""/providers/Microsoft.PowerApps/apis/shared_excelonlinebusiness"
            },
            "parameters": {
                "source""sites/company.sharepoint.com,23723899-832a-4051-897f-388dbe2ca2ed,5c92e17f-6fb5-42ef-b65f-72e3872b2749",
                "drive""b!mThyIyqDUUCJfziNviyi7X_hkly1b-9Ctl9y44crJ0nRHm_TYClMTqAXi9bawS8M",
                "file""@outputs('Get_file_metadata')?['body/Id']"
            },
            "authentication": {
                "type""Raw",
                "value""@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']"
            }
        },
        "metadata": {
            "operationMetadataId""ab5258db-f10e-446d-b1b7-f053c234758b",
            "tableId"null
        }
    }
  • Manish Solanki Profile Picture
    15,099 Moderator on at

    Hi @Jo9 

     

    You need to pass the file path in the "File" input parameter instead of ID. It would be helpful if you could share the screenshots of previous actions or overall flow.

     

     

  • Manish Solanki Profile Picture
    15,099 Moderator on at

    Hi @Jo9 

     

    Pls pass "Path" from the "Get file metadata" action as shown below:

    ManishSolanki_0-1706703628644.png

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • Jo9 Profile Picture
    57 on at

    Jo9_0-1706703565825.png

     

    Jo9_1-1706703642893.png

    Jo9_2-1706703676115.png

    it works for all the members except one member who encountered this issues when initiate the power automate.

  • Jo9 Profile Picture
    57 on at

    Hi, I tried changing to path instead of using id.

    But the bad gateway still occur.

    {
      "error": {
        "code"502,
        "source""asia-001.azure-apim.net",
        "clientRequestId""b35057d5-cde2-4d1f-b03f-e63007f86954",
        "message""BadGateway",
        "innerError": {
          "status"502,
          "message""We're sorry, but something went wrong with this file.\r\nclientRequestId: b35057d5-cde2-4d1f-b03f-e63007f86954\r\nserviceRequestId: a61b98d4-8cf4-4a5b-8995-a6fafbe49fd1",
          "error": {
            "message""We're sorry, but something went wrong with this file."
          },
          "source""excelonline-ea.azconn-ea-001.p.azurewebsites.net"
        }
      }
    }
  • Verified answer
    Jo9 Profile Picture
    57 on at

    Hi,

    I have found out the root cause. It is because my working file has been corrupted after changing to a new working file. It works fine. Anyway, thanks for your prompt reply.

    Best regards,

    Jo

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard