Skip to main content

Notifications

Power Automate - Building Flows
Unanswered

Urgent - How do tokens work in power automate? - 'Failed to refresh access token for service

Posted on by
Hi all,

We have been using the power platform for over 4 years now, but within this year everything to do with power automate has been unstable to the point where we are considering migration from power automate overall.

Our organization started to require 2FA external verification for our powerapps and I do not know if it is related.

I have a powerapp that utilizes power automate flows and it is almost as reliable as a coin flip now, whereas a year ago it was completely reliable.

For my sharepoint connectors (get items specifically) and outlook connectors (Send an Email V2 specifically) are almost unusable anymore. 

The error message is "Error from token exchange: Runtime call was blocked because connection has error status: Enabled| Error, and office365 is in the block list. Connection errors: [ParameterName: token, Error: Code: Unauthorized, Message: 'Failed to refresh access token for service: aadcertificate. ]"

I have done the following:

1: Delete the automate connections and remake them for sharepoint and outlook
2: Remake the entire flow from scratch with new connections

I do not understand why this is happening.

This is a powerapp with a few thousand users that have peak periods, with long periods of dormancy between some users. 

What I don't understand is why does this happen randomly? I had a user came to me with an error and I looked at the logs in powerautomate and determined it was this specific error. I delete the user's sharepoint record (so they could try again), and it worked. 

Why does this error only happen to some users some of the time? I've witnessed users click a button, the flow fails with the expired access token, it works again, and then it fails again.

How can I make my automate flows using sharepoint get items and send an email V2 outlook connector be reliable again?

Is there a way I can verify a token in a power automate or powerapp when the first interactions with it? 

I have asked my colleagues and we have not identified a solution or found any problems in AD. I have asked Microsoft reps who were unable to help me.

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,532

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,050

Leaderboard