cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
zdieter
Level: Powered On

Error Unexpected Character

Hi,

 

I keep gettting the error bellow while following an answer I got to this Question

Unexpected characters. The formula contains 'Ident' where 'CurlyClose' is expect

 This is the code I am using

ForAll(
    Groups,
    Patch(
       PeopleInfoTable, 
       Defaults(PeopleInfoTable),
       {
         displayName: Groups[@displayName],
         givenName: Groups[@givenName],
         id: Groups[@id],
         jobTitle: Groups[@jobTitle],
         mail: Groups[@mail],
       } 
    )
)

 

 

Any suggestions would be great! Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Error Unexpected Character

Hi @zdieter

I think it's because you have a trailing comma after the line that begins mail:

ForAll(
    Groups,
    Patch(
       PeopleInfoTable, 
       Defaults(PeopleInfoTable),
       {
         displayName: Groups[@displayName],
         givenName: Groups[@givenName],
         id: Groups[@id],
         jobTitle: Groups[@jobTitle],
         mail: Groups[@mail],
       } 
    )
)

If you delete this comma, your code should hopefully work.

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Error Unexpected Character

Hi @zdieter

I think it's because you have a trailing comma after the line that begins mail:

ForAll(
    Groups,
    Patch(
       PeopleInfoTable, 
       Defaults(PeopleInfoTable),
       {
         displayName: Groups[@displayName],
         givenName: Groups[@givenName],
         id: Groups[@id],
         jobTitle: Groups[@jobTitle],
         mail: Groups[@mail],
       } 
    )
)

If you delete this comma, your code should hopefully work.

View solution in original post

Sibalukhulu
Level: Powered On

Re: Error Unexpected Character

Good day

 

I need some assistance I have design an App that saves an entire row in a gallery. but when I use the code below I get an error (Unexpected characters. Characters are used in the formula in an unexpected way) on the semicolon highlighted in red 

 

UpdateContext({EditRecord:""});
Patch(Accounts,{accountid:ThisItemm.accountid},{name:AccountNameLabel.Text, address1_city:
CityLabele.Text, address1_stateorprovince:
StateLabel.Text, address1_country:
CountryLabel.Tet, telephone1:
TelephoneLabel.Text}) 

Capture.PNG

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,021)