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 / Bug report: Cannot set...
Power Apps
Answered

Bug report: Cannot set numerical value in local collection to blank/null using Blank()

(2) ShareShare
ReportReport
Posted on by 6,949

When trying the following, an error is given that "The type of this argument 'MyNumber' does not match the expected type 'Number'. Found type 'Text'."

 

ClearCollect(MyTest, {MyNumber: 123}); Patch(MyTest, First(MyTest), {MyNumber: Blank()})

The following unfortunately gives 0 as result and not null/blank.

 

ClearCollect(MyTest, {MyNumber: 123}); Patch(MyTest, First(MyTest), {MyNumber: Value(Blank())})

 

Frankly, this is also strange Value(Blank()) gives zero and not null/blank.

 

This is the work-around:

ClearCollect(MyTest, {MyNumber: 123}); Patch(MyTest, First(MyTest), {MyNumber: Value("")})
Categories:
  • Verified answer
    v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi Meneghino,

     

    I have seen several similar threads from you. And also the idea you have shared detailed scenario.

    We have reported this from our side, and PGs are actively working on it. But we don’t have an ETA for it.

     

    I guess that it might be a complex issue. We will keep an eye on it and back to you with the latest information.

     

    Best regards,
    Mabel Mao

  • Dexx3336 Profile Picture
    69 on at

    Is It fixed??

     

    I also not able to set the null value to numeric field in my Dynamics365. 

    Value(Blank()) gives 0 and  i used Value("") to set null in numeric field in Dynamics 365 but it didnt worked.

     

    Is there have any other solution??

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard