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

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)
  • WarrenBelz Profile Picture
    153,773 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
  • WarrenBelz Profile Picture
    153,773 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
  • Ram Prakash Duraisamy Profile Picture
    5,660 Super User 2026 Season 1 on at
    Hi,
     
    Make sure there is non temprory variablrs used, if so then clear that variable and update the same

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 105 Most Valuable Professional

#2
Haque Profile Picture

Haque 77

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 70

Last 30 days Overall leaderboard