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 / Patch throwing unknown...
Power Apps
Unanswered

Patch throwing unknown error

(0) ShareShare
ReportReport
Posted on by 2

Hello, Im completely stuck on this. I have a simple powerapps form i made with SharePoint. The new form has fields such as choice, people picker, text field, dates, etc. I have formatted them all according the MSFT Standard. Yet in the end, I get an exception  which i have no i dea what its saying. 

 

Patch(Proposals, Defaults(Proposals),{Title:DataCardValue1_1.Text,UID:DataCardValue72.Text,Solicitation_x0020_Number:DataCardValue71.Text,Stage:{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
 Id:1,
 Value:DataCardValue86.Selected.Value},
VT_x0020_Role:{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
 Id:1,
 Value:VTRole.Selected.Value
 },
 Final_x0020_RFP_x0020_Date:DataCardValue73.SelectedDate,Proposal_x0020_Due_x0020_Date:DataCardValue74.SelectedDate,
 Strategic_x0020_Business_x0020_U:{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
 Id:1,
 Value:BusinessUnit.Selected.Value
 
 },
 Capture_x0020_Lead:{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims:"i:0#f|membership|" & Lower(CaptureLead.Selected.Email),
Department:"",
DisplayName:CaptureLead.Selected.Email,
JobTitle:"",
Picture:"",
Email:CaptureLead.Selected.Email},
Proposal_x0020_Manager:{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims:"i:0#f|membership|" & Lower(ProposalManager.Selected.Email),
Department:"",
DisplayName:ProposalManager.Selected.Email,
JobTitle:"",
Picture:"",
Email:ProposalManager.Selected.Email},
Pricing_x0020_Lead:{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims:"i:0#f|membership|" & Lower(PricingLead.Selected.Email),
Department:"",
DisplayName:PricingLead.Selected.Email,
JobTitle:"",
Picture:"",
Email:PricingLead.Selected.Email}
 
 
 })

 

 

 

 

ErrorPowerapps.PNG
Categories:
  • Andy_Tuke Profile Picture
    141 on at

    I can't see anything obvious looking through the code, I am assuming the red wiggly underline is under the whole function block and therefore giving you no help as to where the code is wrong?

    If thats the case I would recommend breaking it down into a smaller patch statement patching one property at a time, get each one working on its own and then start building up into the full thing you have here.  I would also strongly recommend making sure you dont have any spaces in the column names in your datasource, if its SharePoint you can create them without and then rename the column which wont change the underlying cxolumn name.  Avoids all those annoying _x0020_ making the code hard to read .  Maybe too late for this project but worth bearing in mind

     

    And why has the code display control on this forum decided it would be useful to put in smileys everywhere you used a 😛 etc.  MS, sort it out.

     

    Andy
    Read my new blog at -
    www.powerappssolution.com

  • NeedAnswersTmrw Profile Picture
    2 on at

    I found the issue, people input values were wrong. Theres got to be a easier way to update the choice and people field. Come on guys! Other than that, good work lol!

  • Andy_Tuke Profile Picture
    141 on at

    I'd be interested to know how they were wrong?

     

    And I agree, lookups and complex fields could be easier

     

    Andy
    Read my new blog at -
    www.powerappssolution.com

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
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard