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 / Netwok Error with Patc...
Power Apps
Answered

Netwok Error with Patch Function

(0) ShareShare
ReportReport
Posted on by 25

Hello,

 

I want to create rows in a Sharepoint List using the Patch function and this code : 

 

Patch (Gestion;Defaults(GestionMembres);{Name: TextInput1_1;Surname: TextInput1_2}).

  • Gestion being the name of Sharepoint List
  • Name and Surrname being column names.

However, upon trying it, I land on a network error : My request is not valid.

 

I double checked the format of the columns of my list, they are all set to text. 

 

Thanks in advance for your help.

 

Cherryl_0-1698671861949.png

Cherryl_1-1698672653713.png

 

 

Categories:
I have the same question (0)
  • Sickle-Cell Profile Picture
    600 Super User 2024 Season 1 on at

    Hi,

     

    Try replacing the semi colons with commas.

    Patch (Gestion,Defaults(GestionMembres),{Name: TextInput1_1,Surname: TextInput1_2})

  • Verified answer
    Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @Cherryl 

     

    Try this formula,

     

    Put .Text after input controls name. 

     

    Patch(Gestion;
    Defaults(GestionMembres);
    {
    Name: TextInput1_1.Text;
    Surname: TextInput1_2.Text
    }
    )

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

     

  • Cherryl Profile Picture
    25 on at

    Hi,

    I replaced them by commas, and there is no more network issues, but :

    • The items on the code after 'Gestion' do not seem to be recognized
    • And the rows are not created

    The monitor does not show error on its part though .🙂

    Cherryl_0-1698673944360.png

    Cherryl_1-1698674028150.png

     

  • Sickle-Cell Profile Picture
    600 Super User 2024 Season 1 on at

    Hi,

     

    As Rajkumar mentioned, adding in the .Text after the text Inputs might solve this problem. In addition, you can try to put the collection name in single quotes.

    Patch('Gestion',
    Defaults(GestionMembres),
    {
    Name: TextInput1_1.Text,
    Surname: TextInput1_2.Text
    }
    )
  • Cherryl Profile Picture
    25 on at

    Hi @Rajkumar_404 ,

     

    Sorry, I didn't see your post TT

    Yes, it does function now !

     

    Thanks a lot 😁

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard