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 / Forms and SQL Views Br...
Power Apps
Unanswered

Forms and SQL Views Broken? Expected a value compatible with 'DataSource'

(0) ShareShare
ReportReport
Posted on by 106

This was working on Friday, and when I came in this morning, no longer working.

 

I have a data source that is a SQL view. 

A gallery is showing items in that SQL view

On select, I am ClearCollect ThisItem into a variable called "SelectedItem"
Then on the next page, I show a Form where datasource is the SQL view and item is "First(SelectedItem)"

 

I get this error now on the Item setting:

"Invalid formula. Expected a value compatible with data source".

 

Everything else seems to be working fine, just not that interaction with a SQL view.  Did something change over the weekend?  This has been working great for several weeks.

 

Anyone else seeing this?

 

The published app is still working great, but the editor is where the error is.  I literally have changed nothing.

Categories:
  • martinav Profile Picture
    3,347 on at
  • martinav Profile Picture
    3,347 on at

    @Brentless ,

     

    I worked mine out.  It had to do with the system mis-typing my variables after saved and recalled.  I could delete the statement, and paste it back in and it would work fine again, until saved and reopened.  The total fix was to set my variables explicitly to Text() when defining them the first time.  Despite the data source column clearly being a string, it was improperly interpreted.  Automatic variable initialization is not always your friend.

     

    Not sure this has anything to do with your problem, but the issue does seem to be an issue with the editor not doing the same thing in run-time.

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

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard