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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow triggered by Powe...
Power Automate
Unanswered

Flow triggered by Powerapp has stopped working due to token error

(0) ShareShare
ReportReport
Posted on by 8

Hello,

 

I have a very simple flow that executes a sql query in order to retrieve data to be shown within a Powerapp. When running the 'test' option in the flow it works as expected, when triggering it from the powerapp with identical parameters it no longer works and reports the error:

 

Error from token exchange: Connection uk-001/logicflows/5328f340-c59c-4a91-b89d-d742656a39f5@https://uk-001.azure-apim.net/ is not allowed to access connection uk-001/sql/d05631817ce94aa5905a8e6ce36d4a38

 

This was working earlier today and no changes have been made to either the flow or the powerapp. I am still able to access the resources outside of powerapps. 

Screenshot 2020-11-09 at 12.53.21.png

Categories:
  • JatinSanghvi Profile Picture
    Microsoft Employee on at

    Hello @Kieran-zz , I will contact the engineering team on this and someone will update here if we can get any information about what caused the error message and how can you resolve it.

  • JatinSanghvi Profile Picture
    Microsoft Employee on at

    Hi @Kieran-zz , the error message means that the Flow does not have access to the SQL connection. I am trying to check if the issue lies within Power Automate or if this is something that can be fixed on user end. Did you try creating a new SQL connection in the Flow and retry sending inputs from PowerApps? The error does not mean that user does not have direct access to the external resource.

  • shyamsu Profile Picture
    Microsoft Employee on at

    @Kieran-zz is the PowerApps user who is invoking the flow same as the user who created SQL connection (not the user logged into flow but the user who created SQL connection)

  • Kieran-zz Profile Picture
    8 on at

    @shyamsu - it seems every time I (as the creator of the sql connection) run the flow via powerapps, it fails. Other uses who are just users of the app can use it successfully

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard