Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
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

  • WarrenBelz Profile Picture
    147,220 Most Valuable Professional on at
    Re: Patching issue & error in updating field columns to table

    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.

  • TM777 Profile Picture
    20 on at
    Re: Patching issue & error in updating field columns to table

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

     

     

  • TM777 Profile Picture
    20 on at
    Re: Patching issue & error in updating field columns to table

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

     

  • Anil_g Profile Picture
    668 Super User 2025 Season 1 on at
    Re: Patching issue & error in updating field columns to table

    @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
    Re: Patching issue & error in updating field columns to table

    @WarrenBelz - Help required please!

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 109 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 76 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 71 Super User 2025 Season 1

Overall leaderboard