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 / PowerApps Gallery Erro...
Power Apps
Unanswered

PowerApps Gallery Error (DataVerse)

(2) ShareShare
ReportReport
Posted on by 9
New to PowerApps and running into an issue using a Gallery. The Gallery in the Second Container I need to be able to add Materials Descriptions (Separate table from the main Table) and need it to connect to the main table by the PRID# in the Main table.  Error I am receiving is (Note this is in DataVerse)
 
 
 
 
Update(
    MaterialLines,
    First(Filter(MaterialLines, PRID = LookUp(
        Requisitions,
        PRID = GalOpenReq.Selected.PRID
    ))),
    {Materials: Self.Text}
)
//Filter(MaterialLines,LookUp(Requisitions, PRID=GalOpenReq.Selected.PRID,PRID)  )
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,386 Most Valuable Professional on at
    Firstly, this would be a better structure - your issue is that your Lookup in Requisitions is returning an entire record - you need the field you are trying to compare
    With(
       {
          _PRID:
          LookUp(
             Requisitions,
             PRID = GalOpenReq.Selected.PRID
          ).MatchingField
       },
       Patch(
          MaterialLines,
          LookUp(
             MaterialLines, 
             PRID = _PRID
          ),
          {Materials: Self.Text}
       )
    )
    If it is PRID, then why bother with the other LookUp ?
    Patch(
       MaterialLines,
       LookUp(
          MaterialLines, 
          PRID = galOpenReq.Selected.PRID
       ),
       {Materials: Self.Text}
    )
    If this is the same gallery as the input text box then
          
    Patch(
      MaterialLines, LookUp( MaterialLines, PRID = ThisItem.PRID ), {Materials: Self.Text} )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee
  • TJ-15101834-0 Profile Picture
    9 on at
    Is there a special Syntax if the PRID in the "MaterialsLines" Table is a Lookup Field to Requisitions Table PRID Field? PRID is the Foreign Key to the Main Table "Requisitions". I am trying to update the "MaterialLines" Table using the PRID #.
  • WarrenBelz Profile Picture
    156,386 Most Valuable Professional on at
    If your data source is Dataverse - I will leave this to others as I do not use it (I am SharePoint only which I assumed was yours as you did not state what you were using)

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard