web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Expected operator

(1) ShareShare
ReportReport
Posted on by 37
Hello! im getting some issues when creating one code after another in power apps. The second Patch shows a expected operator error(Operator expected. We are expecting an operator like +, * or & at this point in the formula.) and the ; simbol after tabela4 its getting a Unexpected characters. The formula contains 'Comma', where 'ParenClose' is expected and Unexpected characters. Characters are used in the formula in an unexpected way erros.
 
Patch(
    'Tabela3';
    Defaults('Tabela3');
    { 'Nome do projeto': NomeProjetoVar }
)
Patch(
    'Tabela4';
    Defaults('Tabela4');
    { 'SOP': SOPProjetoVar }
)
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,315 Super User 2025 Season 2 on at
    Hi you are missing a semi colon between them
    Yours
    Patch(
        'Tabela3';
        Defaults('Tabela3');
        { 'Nome do projeto': NomeProjetoVar }
    )
    Patch(
        'Tabela4';
        Defaults('Tabela4');
        { 'SOP': SOPProjetoVar }
    )
    Mine as you need to close the original Patch or it just thinks its a run on sentence.
    Patch(
        'Tabela3',
        Defaults('Tabela3'),
        { 'Nome do projeto': NomeProjetoVar }
    );
    
    Patch(
        'Tabela4',
        Defaults('Tabela4'),
        { 'SOP': SOPProjetoVar }
    )
     
  • Fullytasker Profile Picture
    37 on at
    Hello Mike! please, i already tried the code you sent me but i already got some error. Im using the PTBR location and already tried with ";" instead of ",". Im getting: 

    Unexpected characters. The formula contains 'Error', where 'ParenClose' is expected.

    Unexpected characters. Characters are used in the formula in an unexpected way.

  • Suggested answer
    timl Profile Picture
    36,383 Super User 2025 Season 2 on at
    Hi Fullytasker 
    If you're using Power Apps in a Latin based/non-English language, you'll need to use semi-colons instead of commas. 
     
    Note that you need a double semi-colon (;;) between the 2 patch statements.
     
     
    Patch(
        'Tabela3';
        Defaults('Tabela3');
        { 'Nome do projeto': NomeProjetoVar }
    );;
    Patch(
        'Tabela4';
        Defaults('Tabela4');
        { 'SOP': SOPProjetoVar }
    )
     
  • Suggested answer
    CA1105 Profile Picture
    545 Super User 2025 Season 2 on at
    Hi,
     
    Could you please add semicolon(;) between patch function?
    Patch(
        'Tabela3';
        Defaults('Tabela3');
        { 'Nome do projeto': NomeProjetoVar }
    );
    Patch(
        'Tabela4';
        Defaults('Tabela4');
        { 'SOP': SOPProjetoVar }
    )
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard