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 Apps
Unanswered

collection error

(0) ShareShare
ReportReport
Posted on by

Hi,

 

i am getting below error while trying to save the data in collection.

 

Onselect of button below is the code:

 

Patch(CodingCollection, Gallery1.Selected, {LineItemPCTDD: Dropdown1.SelectedText.Value, LineItemPCTOther: TextInput1.Text, LineItemPCT: 'PCT TB'.Text, LineItemNOC: 'User TB'.Text, LineItemBCDate: 'Date TB'.SelectedDate, LineItemWCDate: 'Date TB_1'.SelectedDate, LineItemPro:'User Pro'.Text, LineItemURE: URE_DD.SelectedText.Value, LineItemNumberUser: 'NumberUser TB'.Text, LineItemComments: TextInput3.Text});

 

Shows error: Function ‘patch’ has some invalid arguments

Categories:
  • mdevaney Profile Picture
    29,993 Moderator on at

    @compliance 

    It would be very difficult to diagnose which argument is giving you issue with so many columns.  So can you please remove all of these items and add them back one-by-one to determine which one is the problem?

     

    {LineItemPCTDD: Dropdown1.SelectedText.Value, LineItemPCTOther: TextInput1.Text, LineItemPCT: 'PCT TB'.Text, LineItemNOC: 'User TB'.Text, LineItemBCDate: 'Date TB'.SelectedDate, LineItemWCDate: 'Date TB_1'.SelectedDate, LineItemPro:'User Pro'.Text, LineItemURE: URE_DD.SelectedText.Value, LineItemNumberUser: 'NumberUser TB'.Text, LineItemComments: TextInput3.Text}

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard