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 / Form Viewer Item error
Power Apps
Answered

Form Viewer Item error

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

the Gallery I have now is named as "MGallery". So on the next screen, I added in the display form and under Items I put "MGallery.Selected". However, they gave me an error: "Invalid formula. Expected a value compatible with 'Datasource'".

 

Is there a way to solve this?

 

Capture.PNG

 

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    However, if I use a Data Table instead of Gallery, I am able to display the selected data. 

     

    Why is this so?

     

  • Verified answer
    CU-18081211-6 Profile Picture
    9,272 Moderator on at

    Hi @Anonymous ,

     

    Please be aware that Gallery.Selected contains, as columns, beside the datasource columns the controls inside the gallery. The structure of Gallery.Selected is not identic with the datasource structure. This is not happen in case of data table.

    To fix this use as item property of the form:

    LookUp('Microfluidizer - Powerapps', ID = MGallery.Selected.ID)

     

    Hope it helps !

  • naro_rijal Profile Picture
    12 on at

    Thanks @gabibalaban , I had the same issue and i found your solution 🙂

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

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard