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 / Using Patch Function w...
Power Apps
Unanswered

Using Patch Function with Text Input inside a Gallery and Getting Network error

(0) ShareShare
ReportReport
Posted on by 111

I'm using a patch function to save and edit items within a gallery but I'm getting a network error

 

gallery.PNG

 

 

Patch(
 testepatch;
 Defaults(testepatch);
 {
 Date:lblDataPax_2;
 Name:txtNamePax.Text;
 Result:""
 }
 
)

 

 

Categories:
I have the same question (0)
  • Fredrik_A Profile Picture
    3,644 Super User 2026 Season 2 on at

    Are the column names correct? Please double check.

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @JasonCastro 

     

    Can you verify the schema names and field types for each column?

     


    Thanks, Stalin (Microsoft MVP)
    Blog - Learn To Illuminate Blog
    YouTube - Learn To Illuminate Videos

  • BideyYusuf Profile Picture
    387 on at

    This might be an issue. 

    HERE    (Date:  lblDataPax_2;)

    is the control lblDataPax_2 a text or a date control?

    also, your column Date: is this a text or a date column?

     

    if its a Date column, you might want to add lblDataPax_2.selectedDate to the formula.

    Patch(
    testepatch;
    Defaults(testepatch);  ----THIS.   it should be a comma ( , )
    {
    Date:lblDataPax_2;
    Name:txtNamePax.Text;
    Result:""
    }

    )

     

    I also noticed an error in your formula;

    I hope this gives you a clue.

  • BideyYusuf Profile Picture
    387 on at

    his might be an issue. 

    HERE    (Date:  lblDataPax_2;)

    is the control lblDataPax_2 a text or a date control?

    also, your column Date: is this a text or a date column?

     

    if its a Date column, you might want to add lblDataPax_2.selectedDate to the formula.

     

    I also noticed an error in your formula;

    Patch(
    testepatch;
    Defaults(testepatch);  ----THIS.   it should be a comma ( , )
    {
    Date:lblDataPax_2;
    Name:txtNamePax.Text;
    Result:""
    }

    )

     

    I hope this gives you a clue.

  • Fredrik_A Profile Picture
    3,644 Super User 2026 Season 2 on at

    @BideyYusuf 

     

    Some regions use ; instead of ,

  • BideyYusuf Profile Picture
    387 on at

    oh!, i see. I guess I have learnt a new thing today. Thanks @StretchFredrik 

  • JasonCastro Profile Picture
    111 on at

    Thx Guys, the problem was the ".txt" after the  fields

     

    Patch(
     testepatch;
     Defaults(testepatch);
     {
     Date:lblDataPax_2.Text;
     Name:txtNamePax.Text;
     } 
    )

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard