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 / I need help debugging ...
Power Apps
Answered

I need help debugging this error on a Patch function

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Here is my Patch statement

Patch(
 'POC Submissions', 
 Gallery1.Selected, 
 {
 Title: SegDropClar_1.SelectedText.Value, 
 SubSegment: SubSegDropClar.SelectedText.Value, 
 Category: CatDropClar.SelectedText.Value, 
 BusinessType: Concat(DropDownListSub, " ~" & BusType & ", " & LOBType & ", " & RType),
 NatureOfTreaty: NatureRadio_1.SelectedText.Value, 
 CancellationType: CancellationRadio_1.SelectedText.Value, 
 Premium: If(IsBlank(FixedPremium_1.Text), PercentPremium_1.Text, FixedPremium_1.Text), 
 CreationDate:Today(), 
 Creator:DataCardValue49.Text, 
 Status: Patch('POC Submissions', Defaults('POC Submissions'), {Status: {Value: "BU Clarification"}})
 }
)

 

And here is the error I am getting 
error.png

 

I have no idea why this isn't working and I've been staring at it for about an hour. Could anyone help me out and point out what I did wrong?

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 
    You must first isolate which column is giving you the problem.  Remove the columns one-by-one until you find what is causing the issue.  Let me know once you have identified the trouble 🙂

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @mdevaney 

    Hi,

    Not sure why I didn't think of that. It appears to be my last column (Status) I have a similar statement in another form and it works there but it is not working here. I went ahead and isolated the problem causer, any ideas on what to do?

    Patch
     (
     'POC Submissions', 
     Gallery1.Selected, 
     {
     Status: 
     Patch
     (
     'POC Submissions',
     Defaults('POC Submissions'),
     {Status: {Value: "BU Clarification"}}
     ) 
     }
     )

     

    Above is the same code as before but only including the statement that is causing issues.

  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 
    I don't think its possible to PATCH inside a PATCH.

    Patch(
     'POC Submissions', 
     Gallery1.Selected, 
     {Status:{Value: "BU Clarification"}}
    )

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 429 Most Valuable Professional

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard