cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Meneghino
Community Champion
Community Champion

Bug report: Errors function autocomplete fails with special characters

Hello PowerApps team.

When using the Errors function with a data source what has special characters (in my case an Access Web App source with a dot in the middle) then there are two bugs:

  1. In PowerApps studio, two forms of the same data source are proposed: wrapped in single quotes and not wrapped in single quotes.  The correct choice is to be wrapped in single quotes but the wrong choice should not be proposed as it is for all other functions that take a data source as a parameter.
  2. Also in PowerApps studio, when the app is closed and then opened for editing, an error is shown (see screeshot below) when in fact there is no error.  The way to make it go away is to reselect the same choice, but it is annoying to have to do this every time.

Many thanks for all the hard work.

 

AAA.png

1 ACCEPTED SOLUTION

Accepted Solutions
v-micsh-msft
Community Support
Community Support

Hi @Meneghino,

 

Thanks for reporting this.

 

I tested this and got with the same symptom.

When edit the errors function, PowerApps studio would provide two values regarding the data source, the one without single quote would bring errors when selected;

After close and open the app again, the error formula would show the same error showed in your screenshot.

A workaround for this is to use a collection to replace the errors () function with the items property in your second screen.

The formula I used for the Check Icon Onselect property is the following:

If(SubmitForm(EditForm1),1,And(Navigate(Screen1,ScreenTransition.None),IsBlank(Collect(ErrorData,Errors('datasource')))))

For the items property of the error screen, just use the ErrorData.

I will collect as a feedback.

Regards

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-micsh-msft
Community Support
Community Support

Hi @Meneghino,

 

Thanks for reporting this.

 

I tested this and got with the same symptom.

When edit the errors function, PowerApps studio would provide two values regarding the data source, the one without single quote would bring errors when selected;

After close and open the app again, the error formula would show the same error showed in your screenshot.

A workaround for this is to use a collection to replace the errors () function with the items property in your second screen.

The formula I used for the Check Icon Onselect property is the following:

If(SubmitForm(EditForm1),1,And(Navigate(Screen1,ScreenTransition.None),IsBlank(Collect(ErrorData,Errors('datasource')))))

For the items property of the error screen, just use the ErrorData.

I will collect as a feedback.

Regards

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

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.

Users online (1,560)