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 / Datacardvalue is not u...
Power Apps
Unanswered

Datacardvalue is not updating back on SQL TAble

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I have a powerapps in production everything is running fine and but there is a form which updates data back to SQL Table.

Everything is updating except one DatacardValue is not updating.

Is this know bug going with SQL server?

Any Help!!

 

Categories:
I have the same question (0)
  • Meneghino Profile Picture
    6,949 on at

    Hi @SyedAli, can you give a few more details?

    What type of column is not updating?

  • SyedAli Profile Picture
    on at

    The Column Type is Numeric all Datacardvalue are updating to SQL except that one.

    Also, I tried all these steps.

    1) Recreated the Field.

    2) Republished the PowerApps

    3) Tried to Enter Data in mutiple fields and checked.

     

    Any help!

  • Meneghino Profile Picture
    6,949 on at

    When you say numeric, what do you mean?

    Is it money? Or is it int? Or is it float/decimal?

    I have had no issues with SQL with int, money and float

     

    PS I am asking because maybe it is a non-standard numeric type that PowerApps has issues with

  • SyedAli Profile Picture
    on at

    My Data type for that in SQL shows me ColumnName(Numeric(14,2),Null).

    Let me know which is this and what type it should be in Back End.

     

     

     

  • Meneghino Profile Picture
    6,949 on at

    That looks like an exact numeric, try the MONEY data type instead which cover your needs since it is 19,4 basically:

    https://docs.microsoft.com/en-us/sql/t-sql/data-types/money-and-smallmoney-transact-sql?view=sql-server-2017

  • SyedAli Profile Picture
    on at

    Let me try this right away and get back to you.

  • Meneghino Profile Picture
    6,949 on at

    I am leaving the office soon, so will pick up tomorrow probably.

  • SyedAli Profile Picture
    on at

    This is my Email if you could get back to me personally. sali6248@gmail.com

     

    Thank you so much for your help. Will look forward to hear from you soon.

  • v-xida-msft Profile Picture
    on at

    Hi @SyedAli,

     

    Could you please share a screenshot about your app's configuration?

    Further, could you please share more details about the Update property of the Data card which is not updated back to your SQL table?

     

    I have made a test on my side, and don't have the issue that you mentioned. Please check if you have provided proper value for the corresponding column (on your side, it is the Numeric column).

     

    I also agree with @Meneghino's thought almost, you could also consider take a try to convert your Numeric column into a Decimal or Money type column, and then re-create an app based on your SQL table, check if the issue is solved.

     

    In addition, please also take a try to use Patch function to save your form data into your SQL table instead of SubmitForm function. The standard formula of Patch function as below:

    Patch(
    YourSQLTable,
    Defaults(YourSQLTable),
    {
    Column1:DataCardValue1.Text,
    Column2:DataCardValue2.Text,
    ...
    }
    )

    Please modify your formula within the OnSelect property of the "Submit"  button as below:

    If(
    EditForm1.Mode=FormMode.New,
    Patch( /* <-- New record */
    'YourSQLTable',
    Defaults('YourSQLTable'),
    {
    Column1:DataCardValue1.Text,
    Column2:DataCardValue2.Text,
    ...
    }
    ),
    Patch( /* <-- Modify an existing record */
    'YourSQLTable',
    BrowseGallery1.Selected,
    {
    Column1:DataCardValue1.Text,
    Column2:DataCardValue2.Text,
    ...
    }
    )
    )

    then check if the issue is solved.

     

    More details about the Patch function in PowerApps, please check the following article:

    Patch function

     

     

    Best regards,

    Kris

  • SyedAli Profile Picture
    on at

    Hi Good Morning,

     

    Thanks for helping me out in this.

    Below is the Configuration Images. I have changed the Data Type to Money and Decimal it didn't work. Currently the column Data type is ColumnName(numeric(14,2),null) in sql.All values are updating except one column.

    I have more than 20 columns to update from Submit form to SQL.

    OnSelect property for for the submit button is SubmitForm(FormName). 

    Let me know your thoughts and how we can write the patch statement.

     

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard