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 / Patch sometimes not ca...
Power Apps
Unanswered

Patch sometimes not carrying all info

(0) ShareShare
ReportReport
Posted on by 37

Hi guys, 

 

Lately i've been using the Collect and Patch function in some apps, but i notice that sometimes some infos are not going to my database, anyone has been expericieng that situation too? 

 

Thats my collection (in that app, people can add more itens before patch)

 

Igarsaba_0-1665777040183.png

 

I made some tests, and aparently, this part is working well

 

Thats the formula for patch all Collected items, but i notice that, especially "Número da Requisição" and "ChefiaEmail" (that item its using a LookUp in another Sharepoint List) its not working well, sometimes he cames with value 0, or Blank.

 

Igarsaba_1-1665777581522.png

 

There some cfg to make?

 

 

 

 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Igarsaba 

    To start, your formula has the ForAll backward. You are trying to use it like a ForLoop in some development language - which PowerApps is not.  ForAll is a function that returns a table of records based on your iteration table and record schema.

    It is more efficient to use the function as intended and will provide better performance since your inner Patch performance will be horrible as you have it.

     

    Your Formula should be of this style:

    Patch('Horas Extras',
     ForAll(ColaboradoresHE,
     {Title: 
     ....etc...
     }
     )
    ) 

     

    However, you are putting a great deal of work into your process that you don't need to do!

    Where are you using the first Collect formula you provided?

     

    And finally, to your initial point - neither of your Lookup columns or email columns are correct.  You cannot set them to text.  The lookup needs to be a record to the looked up record - to include the ID (Id) and the Title or other lookup-defined field (Value).  As for the User type column, you must be supplying a full SharePoint User record to that column.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard