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 / Error: CurlyOpen where...
Power Apps
Answered

Error: CurlyOpen where ParenClose is expected

(0) ShareShare
ReportReport
Posted on by 17

Hello, i am trying to make a Form in PowerApps that be adding new events to my excel chart, I used this code:

Collect(Tabuľka1 {'Názov udalosti':NazovUdalosti.Text;'Začiatok':Zaciatok.DateTime;'Koniec':Koniec.DateTime;'Zodpovedná osoba':ZOsoba.Text;'Typ':Typ.Text;'Popis udalosti':Popis.Text})
but it is always giving me this error: "CurlyOpen where ParenClose is expected"
 
Datasource is my Excel sheet which is on OneDrive

Can you help me please? Thanks 
 
image.png
Categories:
I have the same question (0)
  • BCLS776 Profile Picture
    8,994 Moderator on at

    Try this:

    Collect(Tabuľka1; //missing a semicolon here
    { 
     'Názov udalosti':NazovUdalosti.Text;
     'Začiatok':Zaciatok.DateTime;
     'Koniec':Koniec.DateTime;
     'Zodpovedná osoba':ZOsoba.Text;
     'Typ':Typ.Text;
     'Popis udalosti':Popis.Text
    })

    Hope that helps,

    Bryan

  • MartinBarbenik Profile Picture
    17 on at

    Thank you for your message, but it is still not working.

    MartinBarbenik_0-1705868960827.png

     

  • BCLS776 Profile Picture
    8,994 Moderator on at

    OK, can you share a translated version of the error message again?

  • MartinBarbenik Profile Picture
    17 on at

    This shows now:

     

    The problem:
    Incompatible type. "Koniec" column in the data source, you are updating expects a DateTime type and you are using the Error type.
    Site:
    Button1
    .OnSelect
    Correction procedure:
    You will probably need to convert the value to be of the same type, for example, convert the date string (for example 31/12/2018) to a date value or a string to a number.

  • BCLS776 Profile Picture
    8,994 Moderator on at

    The error is pointing out that "Koniec.DateTime" is not referencing a valid property of a control. Is Koniec a datepicker control? If so, the date reference would be "Koniec.Value" or "Koneic.SelectedDate" depending on the exact datepicker. Try those references instead, and you'll likely need to do the same with the Zaciatok control.

     

    Hope that helps,

    Bryan

  • MartinBarbenik Profile Picture
    17 on at

    Still showing this, even is i type Koniec.Value, and also Zaciatok.Value
    The problem:
    Incompatible type. The "Koniec" column in the data source you are updating expects a DateTime type and you are using the Error type.

     

    MartinBarbenik_0-1705906298031.png

    MartinBarbenik_1-1705906457105.png

     

  • BCLS776 Profile Picture
    8,994 Moderator on at

    Please use the intellisense (autocomplete) feature to help you complete the property values for the controls. It should be "Koneic.SelectedDate", not "Koneic.SelectDate"

     

    Alternatively, it looks like you are using a form control, so you can try this:

    Collect(Tabuľka1; Form2.Updates);;

     

    Bryan

  • MartinBarbenik Profile Picture
    17 on at

    Sorry for my mistake, but it doesnt work:

     
    Collect(Tabuľka1;
    {    
        'Názov udalosti':Nazov.Text;
        'Začiatok':Zaciatok.SelectedDate;
        'Koneic':Koniec.SelectedDate;
        'Zodpovedná osoba':ZOsoba.Text;
        'Typ':Typ.Text;
        'Popis udalosti':Popis.Text
    })

    The problem: Incompatible type. 'Event name' column in of the data source you are updating expects the type Text and you are using the Error type.


    I tried it with Form2 like you said, 
    Collect(Tabuľka1; Form2.Updates);;
     
    there is no problem/no error but the data in excel sheet is not updating, is it possible to make it somehow?

    Thank you for your help



  • Verified answer
    BCLS776 Profile Picture
    8,994 Moderator on at

    Oh, I think I have misunderstood your request.

     

    When you want to submit entries from a form into a datasource, we do not use Collect(). Instead, we use:

    SubmitForm(Form2);;

    Collect() is meant for keeping a copy of the data in a table within the app, much like a temporary variable.

     

    Does this help?

    Bryan

  • MartinBarbenik Profile Picture
    17 on at

    Thank you so much, this really helped me. After form is submitted, data goes into an excel spreadsheet on my sharepoint. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 547

#2
WarrenBelz Profile Picture

WarrenBelz 444 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard