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 / parenclose where EoF i...
Power Apps
Answered

parenclose where EoF is expected error

(0) ShareShare
ReportReport
Posted on by 576

I'm having trouble figuring out what is wrong with my formula. I keep getting the error Parenclose was found when EoF is expected. I'm sure it's that I haven't closed something off right. Below is my formula.

 

Set(varRecord,SubmitForm(Form3_1);If(!IsBlank(varRecord), Notify("Your request has been submitted! You may now close the window.", NotificationType.Success), Notify("Your request was not submitted", NotificationType.Error))

Categories:
I have the same question (0)
  • Mr-Dang-MSFT Profile Picture
    Microsoft Employee on at

    Hi @ahhollan ,

    I've reformatted your formula for readability below:

    Set(varRecord,SubmitForm(Form3_1);
    
    If(
     !IsBlank(varRecord), 
     Notify("Your request has been submitted! You may now close the window.", NotificationType.Success), 
     Notify("Your request was not submitted", NotificationType.Error)
    )

     

    It looks like you're missing a parenthesis to close the Set() formula. 

  • ahhollan Profile Picture
    576 on at

    Now  I get 'IsBlank has invalid argument' error. Any thoughts?

  • WarrenBelz Profile Picture
    155,290 Most Valuable Professional on at

    @ahhollan ,

    Try - this is definitely valid syntax

    Set(
     varRecord,
     SubmitForm(Form3_1)
    );
    If(
     !IsBlank(varRecord),
     Notify(
     "Your request has been submitted! You may now close the window.", 
     NotificationType.Success
     ),
     Notify(
     "Your request was not submitted", 
     NotificationType.Error
     )
    )

     

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • ahhollan Profile Picture
    576 on at

     get 'The function 'IsBlank' has some invalid arguments. 

  • Mr-Dang-MSFT Profile Picture
    Microsoft Employee on at

    Hi @ahhollan ,

    If varRecord is indeed a full record which has many fields, it may not make sense to check if the full record itself is blank, but rather a specific field of the record.

     

    So you can drill into varRecord.column_name and check if that specific column is blank. Change column_name to the column of your choice.

     

    The resulting formula might look like this:

    Set(varRecord,SubmitForm(Form3_1));
    
    If(
     !IsBlank(varRecord.column_name), 
     Notify("Your request has been submitted! You may now close the window.", NotificationType.Success), 
     Notify("Your request was not submitted", NotificationType.Error)
    )

     

  • Verified answer
    WarrenBelz Profile Picture
    155,290 Most Valuable Professional on at

    Hi @ahhollan ,

    Back in my time zone - try

    Set(
     varRecord,
     SubmitForm(Form3_1)
    );
    If(
     !IsEmpty(varRecord),
     Notify(
     "Your request has been submitted! You may now close the window.", 
     NotificationType.Success
     ),
     Notify(
     "Your request was not submitted", 
     NotificationType.Error
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    155,290 Most Valuable Professional on at

    Hi @ahhollan ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • ahhollan Profile Picture
    576 on at

    I ended up having to use your code in conjunction with a patch function. I did get it working.

  • Mr-Dang-MSFT Profile Picture
    Microsoft Employee on at

    Hi @ahhollan ,

    Upon using SubmitForm, you can reference the record that was created by something like:

    EditForm1.LastSubmit

     

    Where EditForm1 is the name of the form control and LastSubmit drills into the record that was created. If you want to look at a specific column, add another dot and the column name:

    EditForm1.LastSubmit.column_name

     

    So you won't need to create a variable to show the record that was created when using SubmitForm.

     

    But for greater ease and taking advantage of the form control's properties, when using SubmitForm, you can place each notify action in the form's OnSuccess and OnFailure properties. 

    • When a record is succesfully submitted, the OnSuccess notification will trigger.
    • When a record fails to be written, the form will show the fields that have an error and the Notify action you place in OnFailure will execute.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard