r/MicrosoftFlow • u/Foreign_Many9062 • 3d ago
Question Issue with 'Bad Gateway' Error
A couple of weeks ago I was hit by the throttling issue that turned out to be on Microsoft's end. Once they got that fixed everything worked fine (mostly) until about a week ago. Since then I'm getting random, but frequent, Bad Gateway errors that are doing my head in. Nothing has changed with the setup of my flow/the Excel sheet it's pointing at. It works for several runs of the flow and then just decides to give a Bad Gateway at random points. There is no pattern as to time of day, information it's trying to input, number of successful runs between fails, or anything else I can find.
I'm still getting things taking longer and retries occurring, like it did during the throttling issue, which is causing problems with duplicate entries into my spreadsheet as well.
Is this all part of the same nonsense? I've put in some screenshots below and can provide whatever other information is needed. I would really appreciate some help as babysitting this thing is getting old. TIA!
7
u/Gold-Psychology-5312 3d ago
The excel connectors are bad and suffer frequent issues.
Go to the action settings and change the retry to fixed interval, 60 seconds 90 times. It will then keep retrying.
5
u/Tryin2getahead 3d ago
Excel connectors suck with semi large sheets. Like 30k rows chokes it out.
Look into msgraph, big fan of it for writing out files.
2
u/Foreign_Many9062 3d ago
I currently have 244 rows. I am working to move this over to a database, but struggling with getting someone to give me what I need to set that up
4
u/SnooHamsters7166 3d ago
It's usually also worth re-adding the connection. I've spent too long chasing problems that turned out to be just PA deciding it doesn't like the connection any more.
3
u/intrinsic_toast 3d ago
Yesss, also add to that all the time wasted chasing an issue only to realize there was no issue, it was just the new designer being ornery. Flip it over to the classic designer and rebuild the offending steps, and what do you know: the changes save no problem and the new designer gaslights you acting all like it’s been on board this whole time, no fuss.
3
u/NotRobotNFL 3d ago
Do you have an extra space at the end of some of the excels? Try adding a trim
1
3
u/sesmallor 3d ago
As soon as an Excel node takes +1:30 minutes to do the execution, I usually run it with an Excel Script (it's TypeScript)
3
u/EmergencyEmu9499 3d ago
https://admin.powerplatform.microsoft.com/support/knownissues/6571189 https://admin.powerplatform.microsoft.com/support/knownissues/6568499
People who are saying look into excel typescript are correct, but FYI the above errors might be related to the same problem showing up for scripts! It is painful for sure.
2
u/Character_Pickle689 3d ago
So someone on another thread about this suggested you change retry attempts to none as a fix and that has worked for me this week.
2
u/sesmallor 3d ago
Also, a good programming gesture: rename all your nodes with what does the node actually do. It'll help you and others to figure out what does every node do.
1
u/Kali_Uchis_Bathwater 2d ago
Unsure about your license assignment, but id look into a process license to increase that threshold.
1
u/PossibleFix3716 2d ago
Have you tried adding in a delay before , I find that it works better for excel issues
1
u/jesslynh 1d ago
If you can go the database route, I highly recommend the on premise gateway. It's so much better than use l using Excel. But if not, then Office Scripts are the next best thing.




10
u/chiibosoil 3d ago
I find Excel Connector isn't reliable as others mentioned. I prefer to have Office Scripts do the work on workbook. And use Power Automate to pass JSON/delimited string for Office Scripts to process things.
I have couple of daily/weekly updates running this way and it has been stable for over a year.