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 / Value does NOT work ca...
Power Apps
Unanswered

Value does NOT work cannot be converted to a value

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Has anyone seen this error before, or know how to cure it. The error does not feature as a formula error - moreover it features as a Runtime error but doesn't stop the run execution.

mc00515_0-1687215124979.png

The datacard corresponds to a SharePoint column that has been formatted as single line text, but is also displaying a number. The number is formatted in Power Apps to report a percentage or a some free text. I have tested it by typing the words " Does NOT work".  The text patches through to SharePoint, but throws the error as reported. I was also hoping to display numbers as % if anyone knows how to do that in SharePoint (for a text column)

 

 

Categories:
I have the same question (0)
  • EddieE Profile Picture
    4,641 Moderator on at

    @Anonymous 

    Can you show the full error message?

     

    Also, the DataCard setup would be helpful as well, eg Default property, any other properties that may affect this and the Update property of the DataCard

  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @Anonymous - what is the actual field type of the SharePoint column? It is not clear from your description whether it is single line text or number.

     

    If it is a number, that error should be expected because it looks as if you're trying to Patch Text values into a Number column.

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @Anonymous - just noticed @EddieE also responded, I'll leave you with him.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @EddieE,

    Thanks for dropping by and taking a look. Darn thing is giving me some grief 😕

    My goal is to give the user the option to enter data either as text or a number formatted as a percentage. Originally I had the SharePoint list column uploaded as number formatted to %, but this didn't give the option to add free text I added an additional column to the list as single line text and gave the corresponding app control the following code in the default property.

    If(
     IsBlank(Parent.Default),
     "",
     Text( 
     Value(Parent.Default) * 100, 
     "#%" 
     ) 
    )

    That permits to patch a percentage value back to the SP List. If I then attempt to patch any free text back to the list, I get an initial error message saying there is a conflict with the server to patch that specific comment back. However, if I refresh the app, it permits me to patch it back, but not without a Runtime error.

    mc00515_0-1687243209687.png

     

  • EddieE Profile Picture
    4,641 Moderator on at

    @Anonymous 

    I think the issue is that you are trying to convert Text to a Value in your formula, eg

     

    Value( "Does NOT Work") creates the error

     

    To fix, you just need another condition inside your If() to cover this situation, try this

    If(
     // condition 1
     IsBlank(Parent.Default), Blank(),
    
     // condition 2
     IsError( Value(Parent.Default) ), Parent.Default,
    
     // else condition
     Text( 
     Value(Parent.Default) * 100, 
     "#%" 
     ) 
    )

     

    Also, to Patch the Blank(), make sure you have formula-level error management on in the Settings, ie

    EddieE_0-1687301229705.png

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @EddieE ,

     

    You didn't specify whether your code is applicable for data formatted as numbers or single line text.

     

    As Single line text, it only works for numeric values, while losing the "%" sign in the control.

    It will  not permit free text.

     

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 320 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard