cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Brentless
Level 8

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

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.

2 REPLIES 2
Super User
Super User

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

Super User
Super User

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

@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.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (6,032)