cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stumac_31
Advocate II
Advocate II

Invalid formula. Expected a value compatible with 'DataSource'

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.

1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

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

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

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

v-monli-msft
Community Support
Community Support

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

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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
Frequent Visitor

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

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

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

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,925)