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 / Expected Operator Erro...
Power Apps
Answered

Expected Operator Error on Patch

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have the error: expected operator. We expect an operator such as +, *, or & at this point in the formula

 

I have a sharepoint list named PoOlvido with a column 'Vendor' which is a lookup column datatype: table. My Combobox1 is also a datatype: table. 

 

I'm trying to create a new record on Vendor column from ComboBox1 using patch here is my code:

 

Patch(PoOlvido,
Defaults(PoOlvido),
{
Vendor:{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: ComboBox1.Selected.ID,
Value: ComboBox1.SelectedItems
},

{Deadline: DatePicker1.SelectedDate},
{'Product 1': product.Product.Title},
{'Quantity 1': quantity},

}
);

 

Thank you for the help

 

Categories:
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Fixed it by using Choices on my ComboBox1.

    On ComboBox1 items I provided the formula : Choices(PoOlvido.Vendor)

    Then I changed my Patch to : Patch(PoOlvido,Defaults(PoOlvido),{Vendor:ComboBox1.SelectedItems},{'other Items': items})

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard