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 / Patching issue & error...
Power Apps
Unanswered

Patching issue & error in updating field columns to table

(0) ShareShare
ReportReport
Posted on by 20

Hi,

 

I used patch with thisitem (in onselect of my + icon & input test --> default is set to thisitem.linecost) , to update my field details into datasource, but for some reason the values of linecost and line item are not updated. Need your suggestion?

 

 

Attaching screenshot

22.png
23.png
I have the same question (0)
  • TM777 Profile Picture
    20 on at

    @WarrenBelz - Help required please!

  • Anil_g Profile Picture
    668 Moderator on at

    @TM777 

     

    To check if there is any error with patch ..try to add the below formula which would display error message if patch fails

     

    Patch(
    defectnumber,
    thisitem,
    { lineost: 444, lineitem: 464 }
    );
    If(
    IsError(Errors(defectnumber)),
    Notify("Error updating record: " & Errors(defectnumber).Message, NotificationType.Error)
    );

     

    cheers

  • TM777 Profile Picture
    20 on at

    Unable to check and tried hardcoded values but still datasource is not updating.

     

    24.png
  • TM777 Profile Picture
    20 on at

    now its not including the last entry into datasource while patching? Any idea how to resolve it?

     

     

    26.png
    25.png
  • WarrenBelz Profile Picture
    156,397 Most Valuable Professional on at

    Hi @TM777 ,

    A couple of fundamental questions. Where is this code being used (in a Gallery or Form as you have used ThisItem ) and is the data source (what is the type) updating but not displaying or simply not updating ?

    Can you please also include the Item of the Form or the Items of the Gallery.

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 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard