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

Notifications

Announcements

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

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.

     

  • TM777 Profile Picture
    20 on at

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

     

     

  • WarrenBelz Profile Picture
    153,051 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard