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 / Cant create form to ed...
Power Apps
Answered

Cant create form to edit data, strange error?

(0) ShareShare
ReportReport
Posted on by 1,097

I need help to solve this.

 

I have two pages/screens.

On one page i have a gallery (Gallery3). Gallery is populated with my sharepoint list (data source).

On the other screen i now want to create a form to edit the data.

But when i add the form and link it to my data source and in ITEM type: Gallery3.Selected

 

I get an error message that says (translated): bad formula, value compatible with datasource is expected

Screenshot: http://prntscr.com/no2vby

 

What am i doing wrong?

 

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Oskarkuus 

    It's a good thing I noticed this...for your sake.  This is based on your previous post about searching and filtering.

    When you add columns to a datasource for a Gallery and then try to connect the .Selected to a Form, the two signatures of the records no longer match and you will get that exact error.

     

    What you need to do is one of two things:

    1) In your Item property of the Form, change the formula to:

    Lookup('EKAN Informerar'; ID=Gallery3.Selected.ID)

    This will lookup the actual record from the datasource - the signature will be the same.

    or

    2)

    First(DropColumns(Table(Gallery3.Selected), "txtValjTeam"))

    This will convert the selected single record to a table (need to do this for DropColumns), then Drops the Column that you added to the Gallery.  Then returns the first record (there is only one, but this converts it back to a record).

     

    I hope this is clear and helpful.

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

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard