cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SAMUELAL
Resolver I
Resolver I

Where is the unexpected Character?

I am getting the error that characters are used in an unexpected way.

 

"For example, the character '\' isn't expected after a number, like this: '32\'. A space ('32') would be expected so that it's just the number 32 or another number (as in '323') would be expected.

 

Filter('HSS Picksheet020521Z', StartsWith(Title,ResourceDropDown.SelectedText.Value)), If(IsBlank(SerialSearchBox.Text),Filter('HSS Picksheet020521Z','Serial Number'=V1),Filter('HSS Picksheet020521Z',StartsWith('Serial Number', SerialSearchBox.Text)))

14 REPLIES 14
JR-BejeweledOne
Super User
Super User

If you copied and pasted, check the first isBlank.   Make sure it's IsBlank and not Isblank.   Surprisingly enough you can get some really strange errors when there are case mismatches in the commands.

 

Is your SerialSearchBox a simple text input or something else?



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

The letter cases seems to have autocorrected.

 

Correct the SerialSearchBox is a simple text input

I tried this and it had no effect on the errors in the formula checker

SAMUELAL_0-1612798352232.png

 

You can easily prove what I am saying by replacing that comma with a ';'.     The issue is the construction of the statement.   The first filter statement is not within the If() so you can't separate it from the other statements with a comma.



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.
SAMUELAL
Resolver I
Resolver I

This is what ended up working:

 

<Filter('HSS Picksheet (6)', And(Title = ResourceDropDown.Selected.Result), StartsWith('Serial Number',SerialSearchBox.Text))>

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,877)