cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ahmadkabha
Frequent Visitor

Value function converted an empty text to a blank value

Ahmadkabha_0-1646415223209.pngWhen Submitting the form get a Warning on Monitor tracking how can fix it?

 

7 REPLIES 7
RandyHayes
Super User
Super User

@Ahmadkabha 

First, this is a Warning not an error!

 

If you change your Formula to :  IfError(Value(DataCardValue8.Text), 0)

That will remove the warning and will default an empty/blank value to 0.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
Pstork1
Dual Super User
Dual Super User

YOu can use the Coalesce() function to substitute a specific value if another value is blank or null.

Blank, Coalesce, IsBlank, and IsEmpty functions in Power Apps - Power Apps | Microsoft Docs



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365 and PWR EduCon in Chicago
EduCon Chicago 2022

JasonLane
Frequent Visitor

HI,

I have the same issue here and provide my code below that appears to be creating the issue. Does anyone have anything thoughts as i cannot fix my issue with the above idea:

Warning issue.PNG

As mentioned in my answer.  Add a Coalesce function around the value() statement in your code so it supplies a default ID if the field is blank.  Make sure the default you pick is a number but outside the range of IDs.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365 and PWR EduCon in Chicago
EduCon Chicago 2022

VinayGudipati
New Member

i am also getting same issue i tried all the possible ways as you guys mentioned above i tried all the ways so please help me with this warning

VinayGudipati
New Member

warning.PNG

 

i am also getting same warning i tried so many ways as you guys mentioned above please if any one have solution how please post here. thank you in advance.

I don't see you using a Coalesce statement around the value to substitute an actual value if its blank.  So don't say you've done everything suggested here. You haven't.  Coalesce will fix the issue if you use it correctly.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365 and PWR EduCon in Chicago
EduCon Chicago 2022

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (2,301)