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 :
Power Apps - Error Handling
Unanswered

Error when use Patch function

(0) ShareShare
ReportReport
Posted on by 100
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?
I have the same question (0)
  • Ram Prakash Profile Picture
    5,402 Super User 2025 Season 2 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
    150,289 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
    150,289 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

Responsible AI policies

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

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 974 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 343 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 339

Last 30 days Overall leaderboard

Featured topics