Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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.

  • David_Schrag Profile Picture
    33 on at
    Re: Can I create a user-friendly data validation message?

    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!

  • Ami K Profile Picture
    15,665 Super User 2024 Season 1 on at
    Re: Can I create a user-friendly data validation message?

    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.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,011 Most Valuable Professional

Leaderboard