Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • WarrenBelz Profile Picture
    146,702 Most Valuable Professional on at
    PowerApps Gallery Error
    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)
  • TJ-15101834-0 Profile Picture
    9 on at
    PowerApps Gallery Error
    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
    146,702 Most Valuable Professional on at
    PowerApps Gallery Error
    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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,026 Most Valuable Professional

Leaderboard