web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Can I create a user-fr...
Power Apps
Unanswered

Can I create a user-friendly data validation message?

(0) ShareShare
ReportReport
Posted on by 33

I have set the properties of a column with a minimum and maximum value, and that column appears in a form in a model-driven app. If I enter a value outside the allowed range and save the data, I get a pop-up box that says "Decimal Value Out Of Range. A validation error occurred. A decimal value provided is outside of the allowed values," followed by a long set of error codes and diagnostic information.

 

Is there a way to present a more user-friendly dialog box? Ideally, it would say something like "The value for [column name] must be between [minimum] and [maximum]," but at the very least I'd like to identify which column is causing the error because there are multiple columns on the data entry form.

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    Hi @David_Schrag - A Model Driven App Form already includes the functionality you have described out of the box. Could you share a screenshot of your App with the error message? It is not normal to receive an error message like that.

  • David_Schrag Profile Picture
    33 on at

    Thanks, your response made me take a second look and I found the problem. I am customizing another developer's solution, which uses the same display name for two columns. Column1 appears on the form and Column2 other is used in a business rule or event or something -- I can't immediately find where the workflow lives. When you save the form, the value of Column1 is copied to Column2. I had set the min/max properties on Column2, so the error message was being triggered on the back end rather than on the front end. That must be  why I was getting the ugly message. When I changed the properties of the Column1, the validation occurred immediately and I got the desired result.

     

    Min/Max set on Column1:

    Validation Error Message.png

    Min/Max set on Column2 (only):

    Decimal Value Out Of Range.png

    Thanks for pointing me in the right direction!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 491

#2
WarrenBelz Profile Picture

WarrenBelz 407 Most Valuable Professional

#3
11manish Profile Picture

11manish 331

Last 30 days Overall leaderboard