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 Apps / PowerApp button doesn'...
Power Apps
Answered

PowerApp button doesn't start flow but generates runtime error

(0) ShareShare
ReportReport
Posted on by 33

Hello,

 

hope somebody can help me out as I am not very familiar with building Power Apps. A colleague who has left the company created a PowerApp to integrate in MS Teams. In the App there's a button (.OnSelect) which should invoke a Flow (Schedule an Office 365 meeting with a random user from the company).

It worked before but now I keep getting a Runtime error:

 

ScheduleOffice365meetingfornextavailable30minutesonbuttonclick.Run failed: { "error": { "code": 502, "source": "europe-002.azure-apim.net", "clientRequestId": "25610178-...", "message": "BadGateway", "innerError": { "error": { "code": "NoResponse", "message": "The server did not receive a response from an upstream server. Request tracking id '085859218015584...'." } } } }

 

Not sure if the formula (.OnSelect) is correct:

Set(RunOK,ScheduleOffice365meetingfornextavailable30minutesonbuttonclick.Run(User().Email))

 

Normally the flow should start then, but now it doesn't.

I have checked and tested the flow and it is working on itself.

 

As I said I am kind of a newbie in PowerApps and flows, so hopefully someone can help me out.

Thank you in advance!!

Categories:
I have the same question (0)
  • LRVinNC Profile Picture
    2,297 on at

    It sounds like a permission problem.  You mentioned the individual who wrote it has left the company.  If their system credentials have been revoked and you haven't updated the app to use your credentials, you could be getting an error.  Check the connections for the app AND the flow and make sure they are all showing as valid.

     

  • testuser365-jan Profile Picture
    33 on at

    thank you for your swift reply LRVinNC

     

    I don't think it's a matter of permissions: I had reset the password of the ex-colleague to make myself co-owner of the flow and app. All connections were checked and showed up as valid.

    I will check again on Monday but any other ideas would be welcome in the meantime.

     

    Thanks again!

  • Verified answer
    testuser365-jan Profile Picture
    33 on at

    Hello again,

     

    unfortunately the problem is not fixed yet.

    The connections are okay, the flow is running well (tests succeed), but the PowerApp is not working.

    Some background: I made a copy of the flow previously and linked that one to the PowerApp but since I have disabled this copy (flow) I got the error ("trigger is not enabled") which is logic, as it was disabled. I have now linked the original flow again to the powerapp, but the button on my canvas app is now not visible anymore and the formula (for this button) contains errors:

     

    this is the formula:

    Set(RunOK,ScheduleOffice365meetingfornextavailable30minutesonbuttonclick.Run(User().Email))

    the error = "invalid number of arguments. received 1, expected 0"

     

    The "visible" property is set to:  Not(RunOK) which also generates an error:

    "invalid argument type (Record). Expecting a Boolean value instead."

    "The function 'Not' has some invalid arguments"

     

    I'm getting a bit desperate now, since the app must work by the end of this week at the latest and I keep getting error after error. 😞

     

    The canvas is just a page with two buttons on it, one to generate the flow (schedule a MS Teams meeting with a random person (from a sharepoint list of users), after checking both persons first available free time in their agendas), and the other to exit the canvas. Once the user clicked on the button (and the flow was generated), another button "Done!" should appear (but I have an error on that button too: "The property on this control expects Boolean values. The rule produces Record values which are incompatible.")

     

    I would be eternally grateful if you could help me with this...

  • Verified answer
    testuser365-jan Profile Picture
    33 on at

    Update regarding this topic: the problem seems to be fixed, no more errors when I click on the button in the PowerApp!

    Don't ask me what I've done, I think it was indeed a matter of permissions and renaming/linking the flow.

     

    But now the PowerApp is added to MS Teams, it's still not working 100% correct: only the organizer (the one clicking on the button) gets a meeting in his agenda, no-one else from the Sharepoint list.

    testuser365-jan_1-1609877102562.png

     

    (app should get the users from a sharepoint list, pick someone randomly, check his/her agenda for first free moment and make a Teams meeting for both organizer/requester and person from the list)

     

    Any ideas? (I think the permissions for the Sharepoint list are okay, maybe additional permissions are needed??)

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard