Hi,
I am encountering an error 'unexpected token' when trying to run my PowerApp on the phone/tablet/web. It works fine in PowerApp Studio.
The error is on each of the three screens (browse, Detail, Edit). E.g. the function behind the '+' button for adding new records looks like this when opened in the web designer:
NewForm(EditForm1),,Navigate(EditScreen1, ScreenTransition.None)
The 'unexpected token' error is related to the comma (',') after ...(EditForm1).
Oddly, when opening the same App in Sudio, the same function looks like this:
NewForm(EditForm1);;Navigate(EditScreen1; ScreenTransition.None)
Here is what I did to create the App:
I suspected a problem with my regional settings, where I have semicolon (';') defined as list separator, which seems to be considered in Studio but not in the Web Designer. Changing this to comma (',') did not help.
So I am a bit at a loss as how to proceed, without losing the work I already put in. Any ideas?
Thank you.
Solved! Go to Solution.
Based on @Drrickryp's input I played around a bit more. Turns out that the solution seems to be to edit the PowerApp in Web Designer and replace the two commas ',,' with a single semicolon ';'.
So we go from this:
NewForm(EditForm1),,Navigate(EditScreen1, ScreenTransition.None)
To this:
NewForm(EditForm1);Navigate(EditScreen1, ScreenTransition.None)
I want to emphasize, that the code with two commas is the one automatically generated by PowerApps Designer, when I created the App based on a SharePoint list. I can only conclude that their is something fishy.
However, this fix seems to work and hopefully helps others.
Thank you for the swift reply. Alas, also with a single comma, the problem remains the same:
Based on @Drrickryp's input I played around a bit more. Turns out that the solution seems to be to edit the PowerApp in Web Designer and replace the two commas ',,' with a single semicolon ';'.
So we go from this:
NewForm(EditForm1),,Navigate(EditScreen1, ScreenTransition.None)
To this:
NewForm(EditForm1);Navigate(EditScreen1, ScreenTransition.None)
I want to emphasize, that the code with two commas is the one automatically generated by PowerApps Designer, when I created the App based on a SharePoint list. I can only conclude that their is something fishy.
However, this fix seems to work and hopefully helps others.
User | Count |
---|---|
138 | |
132 | |
75 | |
74 | |
73 |
User | Count |
---|---|
206 | |
195 | |
70 | |
59 | |
52 |