Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Error Handling
Unanswered

Error when use Patch function

(0) ShareShare
ReportReport
Posted on by 98
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?
  • Ram Prakash Profile Picture
    5,289 Super User 2025 Season 1 on at
    Error when use Patch function
    Hi,
     
    Make sure there is non temprory variablrs used, if so then clear that variable and update the same
  • WarrenBelz Profile Picture
    148,735 Most Valuable Professional on at
    Error when use Patch function
    @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
    148,735 Most Valuable Professional on at
    Error when use Patch function
    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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Featured topics