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 Apps
Unanswered

Syntax Error

(0) ShareShare
ReportReport
Posted on by 8

I am attempting to add columns "Title" and "Name" to a data table with info from my data source and am getting a syntax errorerror6.png

 

SortByColumns(
AddColumns(
GroupBy(
Filter(
Safetyl,
StartsWith(
Title,
Textlnput5.Text
)
),
"Title",
"All Titles"
),
"Discussions",
CountRows('All Titles'),
"Name",
First('All Titles').Name
),
"Title"
)

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @np300 

    I did a copy and paste of your formula into a different font.  The letter I in your TextInput5 is showing as a lower case L, not an I.

    Perhaps you need to look at that letter.

     

    I hope this is helpful for you.

  • np300 Profile Picture
    8 on at

    That was an Issue. But same error appears

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @np300 

    The formula looks good for the most part, so if it is still showing that exact error, you might want to try re-typing in the formula to make sure it has the proper spelling/letters.

     

    If still no joy, post back your corrected formula for review.

  • np300 Profile Picture
    8 on at

    SortByColumns(

       AddColumns(

          GroupBy(

             Filter(

                Safety1,

                StartsWith(

                   Title,

                   TextInput5.Text

                )

             ),

             "Title",

             "All Titles"

          ),

          "Discussions",

          CountRows('All Titles'),

          "Name",

          First('All Titles').Name

       ),

       "Title"

    )

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @np300 

    And the error you are now getting - is that exactly the same as before?

  • np300 Profile Picture
    8 on at

    AddColumns has invalid arguments

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @np300 

    Please explore your formula in the formula editor.  At this point it should have red underlines on the formula.  Look for the following...

    - a thicker red underline in one area.  Then hover over that for a more meaningful error.

    - if no thicker underline is seen, then hover over functions in your formula, working from in to out (i.e. StartsWith, Filter, GroupBy would be in to out) and see what error the formula editor shows in the tool tip.  That should lead you to which part of the formula (the area within the AddColumns function) that has the 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 Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard