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 / App stuck on patching ...
Power Apps
Answered

App stuck on patching after completion

(0) ShareShare
ReportReport
Posted on by 820

Hi

I have a simple patch and after records are patched i see on top of app these running dot's like something is happening and app is still patching but records are already pacthed on the dataverse. also i have on app reset button where it resets all controls to blank so by default it also resets if something is loaded into gallery so it resets it and gallery is blank so i have nothing on my app. But in this case when these dots on top are running of course the reset is not working.

I have founded out what causes it to hang. in gallery i have a label with this formula on text control:

Countrows(Filter(Transactions,SearchID=Concatenate(ThisItem.new_ProjectName.'Projekto pavadinimas', ThisItem.new_componentname,FilterDarboTipasCard.Selected.new_stagename)))>0,"Record exists","Record does not exist")

 

With this formula i check user selection criteria in app and if this selection combination record (SearchID) exists in Transaction database.

I have no idea why this part crashes my app

Can you pls help?

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @jja 

    Filter is "expensive".  It requires iterations over all the records.

    Look to LookUp as a better means of performance.

     

    Your formula would be:

    If(
     LookUp(Transactions,
     SearchID = ThisItem.new_ProjectName.'Projekto pavadinimas' & ThisItem.new_componentname & 
     FilterDarboTipasCard.Selected.new_stagename, true
     ),
     "Record exists",
     "Record does not exist"
    )

     

    Ultimately, this can also be done at the Items property level rather than in each template of the gallery.

     

    I hope this is helpful for you.

  • julijazas Profile Picture
    820 on at

    @RandyHayes 

    god bless you!!!

    Thanks. 

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 Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard