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 / Invalid formula. Expec...
Power Apps
Answered

Invalid formula. Expected a value compatible with 'DataSource'

(0) ShareShare
ReportReport
Posted on by 158

Dear all

 

Coming back to this after a couple of months, my app is no longer working. 

On my editscreen I have an error I can't figure out as it does not seem to be related to a data card/source.

It seems to the page as a whole but I cant work out what it is

 

The command bar has the instruction: BrowseGallery1.Selected

The error message is 'Invalid formula. Expected a value compatible with 'DataSource'.

See attached picture

 

I recently added a new screen, but cannot see how this is connected.

Picture1.png
Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Are the data sources for the Gallery and the EditForm the same?

  • Verified answer
    v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @stumac_31,

     

    Please try to remove the data source and readd it again. If this still does not solve the issue, please try to create a new app the test.

     

    In addition, what is the data source and what is the related formulas?

     

    Regards,

    Mona

  • akharns Profile Picture
    433 on at

    Is it possible to remove and re-add the data source without rebuilding the entire application?  That sounds like a very impactful recover step.  So many objects are tied directly to data elements in the data source.

  • MissyLLane Profile Picture
    14 on at

    I have the same issue.  Was their a solution that doesn't require changing the source and rebuilding the form?

  • MissyLLane Profile Picture
    14 on at

    I duplicated the screen and it automatically resolved the issue.  That was after hours of thinking I had it set wrong, taking out and rebuilding the form and the gallery individually.  Eh...

  • gabrieleamb Profile Picture
    3 on at

    I can't believe it. I'm searching for answers for about 5 hours and nothing worked. So I tried this.

    It worked. 

     

    **bleep** logic. 

     

    Thanks

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard