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

Community site session details

Session Id : g97ZbLBF5J/ZjgKyN21xYR
Power Apps - Building Power Apps
Answered

PowerApp button doesn't start flow but generates runtime error

Like (0) ShareShare
ReportReport
Posted on 31 Dec 2020 15:04:18 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!!

I have the same question (0)
  • Verified answer
    testuser365-jan Profile Picture
    33 on 05 Jan 2021 at 20:06:04
    Re: PowerApp button doesn't start flow but generates runtime error

    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??)

  • Verified answer
    testuser365-jan Profile Picture
    33 on 05 Jan 2021 at 11:54:26
    Re: PowerApp button doesn't start flow but generates runtime error

    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...

  • testuser365-jan Profile Picture
    33 on 01 Jan 2021 at 17:14:59
    Re: PowerApp button doesn't start flow but generates runtime error

    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!

  • LRVinNC Profile Picture
    2,297 on 31 Dec 2020 at 19:55:56
    Re: PowerApp button doesn't start flow but generates runtime error

    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.

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 752 Most Valuable Professional

#2
developerAJ Profile Picture

developerAJ 472

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 358 Super User 2025 Season 2

Last 30 days Overall leaderboard