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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Error when use Patch f...
Power Apps
Unanswered

Error when use Patch function

(0) ShareShare
ReportReport
Posted on by 103
Hi, I have an app with table as a vertical gallery.

OnSelect functions on the + button:
ForAll(
  Sequence(1),
  Patch(
      'Gallery Table',
      Defaults('Gallery Table'),
      {
          Signature: "",
          GUID_Form: If(IsBlank(TextInputCanvas8), varGUID, TextInputCanvas8.Value)
      }
  )
);
Patch(
  'Gallery Table',
  ShowColumns(
      colGridUpdates6,
      Date,
      'Temp check',
      Comments,
      'Payroll No.',
      Signature,
      Hours,
      Minutes,
      AWB,
      GUID_Form,
      ID
  )
);
Set(varReset6,false);
Set(varReset6,true);
The rows are created in the Sharepoint list (Gallery Table). When I need to create a new row, I click the + button.
By clicking Save, the data is sent to the list.
But sometimes for some reason two rows are created, although I click the + button once.
Does anyone know what the error might be?
Categories:
I have the same question (0)
  • Ram Prakash Duraisamy Profile Picture
    5,637 Super User 2025 Season 2 on at
    Hi,
     
    Make sure there is non temprory variablrs used, if so then clear that variable and update the same
  • WarrenBelz Profile Picture
    153,529 Most Valuable Professional on at
    @xvzms​​​​​​​
    A quick follow-up to see if you received the answer you were looking for or if you need further assistance.

    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    Buy me a coffee
  • WarrenBelz Profile Picture
    153,529 Most Valuable Professional on at
    Hi @xvzms
    Why not just do it all in one Patch - add the collection then create a new record
    Patch(
       'Gallery Table',
       Table(
          ShowColumns(
             colGridUpdates6,
             Date,
             'Temp check',
             Comments,
             'Payroll No.',
             Signature,
             Hours,
             Minutes,
             AWB,
             GUID_Form,
             ID
          ),
          {
             Signature: "",
             GUID_Form: If(IsBlank(TextInputCanvas8), varGUID, TextInputCanvas8.Value)
          }
       )
    );
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    Buy me a coffee

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 428

#2
WarrenBelz Profile Picture

WarrenBelz 374 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 333 Super User 2025 Season 2

Last 30 days Overall leaderboard