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
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 85 members 3,880 guests
Please welcome our newest community members: