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

Error in Formula

(0) ShareShare
ReportReport
Posted on by 4
I am new to Power apps and I am trying to create a forum that will allow users to take notes while in the field and save them offline. I keep getting the following errors in my formula and I am not sure how to resolve the issue. The errors seem to be in the Category and Note portion. Any assistance would be appreciated.
 
Expected operator. We expect an operator such as +, *, or & at this point in the formula.
Unexpected characters. Characters are used in the formula in an unexpected way.
 
Patch(
    'Field QC Notes',
    Defaults('Field QC Notes'),
    {
        'Field QC': {
            '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
            Claims: "i:0#.f|membership|" & User().Email,
            DisplayName: User().FullName,
            Email: User().Email
        },
        Date: DatePicker2.SelectedDate
        Category:DropdownCanvas2.Selected.Value,
        Note: NoteInput.Text 
    }
);
Notify("Note saved successfully!", NotificationType.Success);
Categories:
  • Suggested answer
    CFernandes Profile Picture
    8,504 Most Valuable Professional on at
    Hey Mate @CU02011711-0
     
     
    The issue in your formula is caused by a missing comma after Date: DatePicker2.SelectedDate. In PowerApps, fields in a record (inside {}) must be separated by commas.
     
    Updated Formula

    Patch(
        'Field QC Notes',
        Defaults('Field QC Notes'),
        {
            'Field QC': {
                '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
                Claims: "i:0#.f|membership|" & User().Email,
                DisplayName: User().FullName,
                Email: User().Email
            },
            Date: DatePicker2.SelectedDate,
            Category: DropdownCanvas2.Selected.Value,
            Note: NoteInput.Text 
        }
    );
    Notify("Note saved successfully!", NotificationType.Success);
     
     
    BTW this is Power Automate Forum and you can use "Power Apps Forum"
     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
     
    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     
  • Verified answer
    Ellis Karim Profile Picture
    12,379 Super User 2026 Season 2 on at
    Hi @CU02011711-0​​​​​​​

    To Patch a People column, the minimum that seems to be required is just the Claims property, for example:
     
    Code that patches a Person column called AddedBy where multiple selections are not allowed
     
     
     
    Ellis Karim
  • CU02011711-0 Profile Picture
    4 on at
    @EKarim Thanks for your assistance. That solved my issue.

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 Automate

#1
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard