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 / Problem saving number ...
Power Apps
Unanswered

Problem saving number from powerapps to SQL SERVER

(0) ShareShare
ReportReport
Posted on by 4

Hello, I have an input field that contains a decimal number. The system language of powerapps uses a comma as the decimal separator. This number needs to be saved in a SQL SERVER database, specifically in a field defined as decimal(10,2). The language of the database is set to US English. In practice, if I save the number with a comma, it gives me an error. If I try to convert it using a substitute, it saves the number without a comma (3,5 becomes 35.00 instead of 3.5). Any ideas?

 

Thank you

 

Categories:
I have the same question (0)
  • timl Profile Picture
    37,283 Super User 2026 Season 2 on at

    Hi @Mich_84_it 

    Please post the details as to how you're saving the record.

     

    SQL Server will handle the saving of numbers automatically, irrespective of language. The behaviour you report could occur if you call Patch and call Text to convert the number to text.

     

  • Mich_84_it Profile Picture
    4 on at

    Hello, I'm using a regular form for data saving connected to my SQL connection. In the UPDATE function of the field, I'm using the Value(Substitute(Text(DataCardValue5.Text), ",", ".")). I also tried inserting "en-US," but I'm still experiencing the issue.

    Thank you

  • timl Profile Picture
    37,283 Super User 2026 Season 2 on at

    @Mich_84_it 

    You would just call Value like so - there's no need to call Substitute.

    Value(DataCardValue5.Text)

     

  • Mich_84_it Profile Picture
    4 on at

    Unfortunately, Value(DataCardValue5.Text) return a conversion error

    Mich_84_it_0-1688555713289.png

     

  • timl Profile Picture
    37,283 Super User 2026 Season 2 on at

    Hi @Mich_84_it 

    This is very unusual.

    If you add a completely new form with the OreTot field and not customise the form at all, does it work?

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard