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 / The variable ** needs ...
Power Apps
Suggested Answer

The variable ** needs to have a non-Blank type.

(0) ShareShare
ReportReport
Posted on by 1,837 Season of Giving Solutions 2025
Hi.
 
I have a canvas application and recently i started to getting this warning on some of my local variables "UpdateContenxt({colSelectedStreetNames:Blank()})":-
 
The variable colSelectedStreetNames needs to have a non-Blank type. If this is the only place that colSelectedStreetNames is defined, resolve this by adding another definition elsewhere that assigns a non-Blank value to this variable.
 
 
as follow:-
 
 
 
so what caused this warning ? and how to solve it? the strange thing, is that the collection is working well.
Thanks
I have the same question (0)
  • Farah-F Profile Picture
    50 on at

    The warning appears because Power Apps uses static type inference, it looks at all the places a variable is defined to determine its data type. When the only definition it finds is Blank(), it has no type information to work with.

    The fix is to add at least one initialization of the variable with a real typed value somewhere in your app (e.g. App OnStart or Screen OnVisible).

    Depending on your variable type:

    If it holds a simple single-column Table of text:

    UpdateContext(
        {
            colSelectedStreetNames: Table({Value: ""})
        }
    );
    If it holds a Text value:
    UpdateContext(
        {
            colSelectedStreetNames: ""
        }
    );

    If it holds a Record:

    UpdateContext({colSelectedStreetNames: {StreetName: ""}})

    You don't need to remove your existing Blank() reset lines , just make sure there is at least one other definition elsewhere that assigns a typed value. Power Apps only needs one typed reference to infer the variable's type and the warning will disappear.

     

    Hope this helps! 🙂

    If my reply helped you fix the issue, you can mark it as a Verified answer so the post is closed and easier for others to find.
    And if it was just helpful in any way, feel free to give it a Like ♥.

  • Suggested answer
    Kalathiya Profile Picture
    1,502 Super User 2026 Season 1 on at
    Hello @johnjohnPter

    You must initialize the variable with a real value somewhere in your app before using it as Blank(). Currently, the variable is only declared as Blank() and is not used anywhere that's why it's giving this error else. If it isn’t needed, you should simply delete it.

    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------
     
    📩 Need more help? Mention @Kalathiya anytime!
    ✔️ Don’t forget to Accept as Solution if this guidance worked for you.
    💛 Your Like motivates me to keep helping!
     

     

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

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard