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 / Blank() value is not u...
Power Apps
Answered

Blank() value is not update on decimal type column in sql table

(1) ShareShare
ReportReport
Posted on by 8
Hi Team,
 
I am not able to store blank() or NULL into decimal type column in sql . It is update only 0.00 value while apply patch. Please help me to fix 
 
 
Set(var_d,Blank());
Patch(Local_Portfolio_Information_Editable,LookUp(Local_Portfolio_Information_Editable,ID="60796_19580_70000SE"),{MSLP_Plus_Value_for_Creation:Value(var_d)})
 
Thanks,
Chitrakant
Categories:
I have the same question (0)
  • Suggested answer
    SpongYe Profile Picture
    5,715 Super User 2026 Season 1 on at
    Hi,
     
    Could you please check if the default value in the SQL table is set to NULL/blank?
    In my case, I have a SQL table where I can define the default value for a column.
    If the Patch function submits Blank(), the SQL column may override it with its predefined default value.
    Below is an example of a SQL table where a default value is mandatory:
     
    Hope this helps.
  • Verified answer
    MS.Ragavendar Profile Picture
    6,208 Super User 2026 Season 1 on at
    Hi,
     
    SQL Decimal columns do not accept Blank() or Null directly in Power Apps.
     
    Instead, when you pass Blank(), Power Apps converts it to 0.00, as SQL treats NULL and 0 differently.
     
    Try this formula

    Approach 1
    Patch(
        Local_Portfolio_Information_Editable,
        LookUp(Local_Portfolio_Information_Editable, ID = "60796_19580_70000SE"),
        { MSLP_Plus_Value_for_Creation: Blank() }
    )
     
    Approach 2
    Patch(
        Local_Portfolio_Information_Editable,
        LookUp(Local_Portfolio_Information_Editable, ID = "60796_19580_70000SE"),
        { MSLP_Plus_Value_for_Creation: Text(Blank()) }
    )
     
    If your column is set to NOT NULL, it cannot store NULL.
     
    ALTER TABLE YourTable ALTER COLUMN MSLP_Plus_Value_for_Creation DECIMAL(18,2) NULL;
     
    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 470 Most Valuable Professional

#2
11manish Profile Picture

11manish 379

#3
Haque Profile Picture

Haque 332

Last 30 days Overall leaderboard