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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to find what is ca...
Power Apps
Unanswered

How to find what is causing this error "The value 'Text box' cannot be converted to a number."

(1) ShareShare
ReportReport
Posted on by 131
When I switch the new analysis engine on I get this warning when navigating to a page. I have searched the code view for this phrase but found nothing. I have also checked all the text boxes that contain values and found nothing out of the ordinary. All functions are working as expected and there is no warning about this in the App Checker. Any idea how to pinpoint the cause?
When I monitor the app in play mode I only get Delegation warning.
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,040 Most Valuable Professional on at
    You might want to add your comments to this thread.
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn    Buy me a coffee
  • Verified answer
    Garethterb1 Profile Picture
    131 on at
    After hours of searching and testing I eventually found the problem. What annoying is that I don't believe that this should have been flagged at the point of first opening the screen.
    I have a text box in a gallery that evaluates ChargeAction and returns a result if true or nothing when false, I did tried substituting "" with 0. When the screen loads the collection is empty, which seems to have been the problem.
    Original formula:
    If(ThisItem.ChargeAction = "Edited" ||ThisItem.ChargeAction = "New",ThisItem.NewAmount,"")
     
     
    Corrected formula:
    If(IsEmpty(ChargesJSONCollection),0,If(ThisItem.ChargeAction = "Edited" ||ThisItem.ChargeAction = "New",ThisItem.NewAmount,""))

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard