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 / Canvas screen | Galler...
Power Apps
Answered

Canvas screen | Gallery | Invalid scope in expression

(0) ShareShare
ReportReport
Posted on by 70

Hello. I had to re-connect datasource to my canvas app. I was able to fix all formulas mistakes raised just after reconnection expect this one:

 

01.GIF

 

Consider that before reconnecting datasource (exactly the same datasource) everything was fine. 

Now I get this error in the formula where I simply change fill colour of a cyrcle based on 'ScoreForn' value. I did not changed formula at all.

Categories:
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi,

    It looks like the app is reading the ScoreForn value as text instead of a number when it is being used for a numerical comparison. Wrap the ThisItem.ScoreForn code in a Value() container so it reads Value(ThisItem.ScoreForn).

    I know that this is likely being caused by a caching issue with Power Apps but this work around should always ensure that it is being passed through as a number.

    Hope it helps,

    Jamie

  • Brucla1968 Profile Picture
    70 on at

    Thanks, I fixed it

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 339 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard