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 change card typ...
Power Apps
Unanswered

How to change card type from string to number

(0) ShareShare
ReportReport
Posted on by 256

Hello,

 

I have an app connected to an Excel file and when created I did not pay attention to proper formatting columns in Excel.

So, I have some datacards that were considered Text, I could do some calculateions based on them, but after some changes, including proper formatting columns in Excel as numbers, I cannot save data.

I receive an error "The requested operation is invalid. Server Response: Invalid value '100' for field 'LastValue', expected a number.

 

I have tryied to put in the Update property Value(LastValue.Text) but no luck.

I have try to add the field again but when I check the data card will show "abc" insetead of "123".

 

So how can I corred the data source so I could work now with numbers and the data card be recognized as number?

 

Kind regards,

Lucian

Categories:
I have the same question (0)
  • Verified answer
    dinusc Profile Picture
    Microsoft Employee on at

    Have you tried setting the TextInput control format to "Number"? (LastValue.Format=TextFormat.Number)

  • Verified answer
    v-micsh-msft Profile Picture
    on at

    The quick workaround here should be re-format the column type within Excel from number to string, then if you need to do some calculation within PowerApps, then use the Value() function to convert it.

     

    Regards,

    Michael

  • Lucian Profile Picture
    256 on at

    Thank you dinusc for your message, I forgot to mention that I have already tried formatting the TextInput but the error was the same.

  • Lucian Profile Picture
    256 on at

    Thank you   for your suggestion, I woll keep in mind this.

    Meanwhile, I solved the problem by logging-off, close all browser windows and create a new screen, so when the field was added was interpreted correctly as number.

    The bad part was that I had to re-make all of the settings and formulas... but in the future, maybe Microsoft will do some updates that could make this kind of changes easier... 😉

     

    Kind regards,

    Lucian

  • Community Power Platform Member Profile Picture
    on at

    Hi Michael,

     

    Xavier here. I tried doing the same thing with my application, and now the number display is missing and my number edit form is back to "1". May I know what is going on?

     

    Thank you and have a great new year ahead!

     

    Xavier

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 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard