cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sienna
Resident Rockstar
Resident Rockstar

BUG REPORT: Inconsistency with error messages

I have tried to add same value into a SQL unique column and display the error in the label with

 

First(Errors('dbo name')).Message

 

I get an error message on my pc 

The request operation is invalid

 

and on my iphone

Unknown error

 

Can anyone please take a look at it and fixed it.

 

BTW there is also automatically generated error message in published app on iphone at the top of the screen which says exactly the same thing. Any chance to disable that message?

1 ACCEPTED SOLUTION

Accepted Solutions
Sienna
Resident Rockstar
Resident Rockstar

Just got my PA updated on my phone and it looks like the error messages are fixed now. 

 

Any chance to get rid of the system message marked on the picture? User of the app doesn't need to know the details and therefore it is not very user-friendly for him anyway. The message should be displayed in studio rather then in publised app

 

err.png

View solution in original post

6 REPLIES 6
Meneghino
Community Champion
Community Champion

This is just a comment.  In your app you should check for duplicate values before the Patch operation so that you can manage the error before it occurs.

Sienna
Resident Rockstar
Resident Rockstar

@Meneghino

You can't do that in 2 scenarios.

 

1/ When 2 users will try add same value into a unique column at the same time

 

2/ When the value which is added into the unique column is  already in more then 2000th row which is the limit for sql tables as far as i know

Sienna
Resident Rockstar
Resident Rockstar

@Meneghino

I appologise for the second point. I've just tested it and it looks like we can look for a duplicates even in above 2000 row limit. But still first point remains imposible to check for duplicates. I'm just thinking... When we are not able to check 100% for duplicates,  do we really have to check for duplicates when we can only trigger error message? It would lighten up the code and even performance of the app. But we need reliable error message... Please any answers here

Sienna
Resident Rockstar
Resident Rockstar

Just got my PA updated on my phone and it looks like the error messages are fixed now. 

 

Any chance to get rid of the system message marked on the picture? User of the app doesn't need to know the details and therefore it is not very user-friendly for him anyway. The message should be displayed in studio rather then in publised app

 

err.png

Sienna
Resident Rockstar
Resident Rockstar

Also it would be very useful to pull the value which is duplicated.

 

err-dup-key.png

 

The Error.Column return blank which according to 

 

  • Column. The column that caused the error, if the error can be attributed to a single column. If not, this will be blank.

should be only single column in unique column so it should have a value

 

err-det.png

Meneghino
Community Champion
Community Champion

I fully agree with @Sienna that the Errors function is not really up to standard.

It should be improved.

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,893)