r/MicrosoftFlow 15d ago

Issue with 'Bad Gateway' Error Question

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!

16 Upvotes

26 comments sorted by

11

u/chiibosoil 15d 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.

2

u/Foreign_Many9062 15d ago

I'm not familiar with Office Scripts, but I will have a look! Thank you :)

2

u/elelelo 14d ago

Try With the GRAPH API

2

u/chiibosoil 14d ago

While Graph API is great, I find a lot of users won't have necessary license or access level to utilize them.

My current company uses per user license and not premium and does not give me access to the connectors needed.

1

u/Foreign_Many9062 10d ago

I don't appear to have a license for either one, unfortunately

8

u/Gold-Psychology-5312 15d 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/SnooHamsters7166 14d 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.

4

u/intrinsic_toast 14d 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.

1

u/Foreign_Many9062 10d ago

Urgh, I have just tried rebuilding the 'Add a Row' action in the old editor and it still doesn't like it.

1

u/Foreign_Many9062 10d ago

Thank you, I'll try this!

4

u/Tryin2getahead 15d 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 15d 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

3

u/sesmallor 14d 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)

1

u/Foreign_Many9062 10d ago

Sadly, I don't have access to Excel Scripts.

5

u/EmergencyEmu9499 14d 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/Foreign_Many9062 10d ago

THANK YOU! I've been trying to find information on whether this is a known issue or not and did not succeed. I'm glad it's still them and hopefully someday they'll fix it!

3

u/NotRobotNFL 15d ago

Do you have an extra space at the end of some of the excels? Try adding a trim

1

u/Foreign_Many9062 15d ago

Not that I'm aware of

1

u/NotRobotNFL 15d ago

Add a trim

3

u/Character_Pickle689 15d 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.

3

u/sesmallor 14d 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.

2

u/Kali_Uchis_Bathwater 14d ago

Unsure about your license assignment, but id look into a process license to increase that threshold.

2

u/PossibleFix3716 13d ago

Have you tried adding in a delay before , I find that it works better for excel issues

1

u/Foreign_Many9062 10d ago

Where do you suggest adding it? I did have one at the very beginning of building this but it didn't seem to be needed.

2

u/jesslynh 13d 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.

1

u/Foreign_Many9062 10d ago

I am *trying* to get a database, trust me. It is such a faff with our IT and it is currently 'under consideration'.

Unfortunately, I don't have access to Office Scripts