Skip to main content

Notifications

Community site session details
Power Apps - Building Power Apps
Answered

The value '-' cannot be converted to a number

Like (0) ShareShare
ReportReport
Posted on 13 Jun 2022 16:19:31 by 199

I just started getting this error message when trying to add a negative number in a few fields in powerapps. 

 

"the value '-' cannot be converted to a number"

 

I first noticed it in a text input control, so I played around with changing the format from text to number and vice versa. But that did not fix the problem. I then checked if I was getting a similar error on another screen where I know I've inputted negative numbers before. On this second screen, the input is a datacardvalue and the format is set to number.

 

Any help would be greatly appreciated. Thank you.

 

 

Categories:
  • rbergan Profile Picture
    199 on 27 Jun 2022 at 23:50:14
    Re: The value '-' cannot be converted to a number

    @v-qiaqi-msft 

    It is a card in a form:

    powerwood_0-1656373517457.png

     

    The format for this is set to "Number". The default is set to Parent.Default. Once I removed the default value and set it to nothing, then the error message did not appear.

     

    @Tqphan87 , I had a similar experience as you did. When I submitted the form the error message did not impact the successful submission of the form and its data. The record was created and the value was a negative value. I also unchecked the "formula-level error management" experimental feature and it allowed for the negative value to be typed without an error.

     

    Thank you both.

  • Verified answer
    Tqphan87 Profile Picture
    32 on 23 Jun 2022 at 16:16:49
    Re: The value '-' cannot be converted to a number

    I started getting the same error pop-up out of nowhere as well even though I'm still able to save the negative value with no issue. Searching through the forums, I went and turned off the experimental feature "formula-level error management" and the error message no longer appears. I still see it listed in the "Runtime" section of my App Checker though but that was how it was before.

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on 16 Jun 2022 at 03:09:40
    Re: The value '-' cannot be converted to a number

    Hi @powerwood,

    Do you want to input negative number within the Text Input control?

    Could you please share a bit more about your need?

     

    Not sure how you will reference to this negative number from the TextInput, however, if you want to reference to it as a number value, you could directly use the Value() function to format it as a number format.

    vqiaqimsft_0-1655348684648.png

     

    Check if it is what you want to achieve.

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!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,079 Most Valuable Professional

Leaderboard