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 / Lookup field not updat...
Power Apps
Unanswered

Lookup field not updating from Canvas App

(0) ShareShare
ReportReport
Posted on by 2

Hi,

 

I am creating a canvas app where I cannot get one field to update. I am storing my data in a collection from the user input screen, then using a patch to update the data to the table. I can see the value stored in the collection, but for some reason, it does not get back to the tab le with the Patch. All of my other fields update fine. The field in question is a lookup field where the values come from another table. I get an error in trying to Update the collection that says: Icompatible Type. The msdyn_status column in the data source you're updating expects a 'Record' type and you're using an 'Error' type. Can anyone guide me in the right direction to fix the error? (Screen print attached)

 

 

Thanks!

Capture.PNG
Categories:
  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @zse ,

    Lookup columns are best avoided unless you really want to use them in the SharePoint interface (editable grid) - you might reads this blog of mine. To answer your question, the syntax would be something like this (note the Id and ID values).

    {
     msdyn_resourcerequirementid:
     {
     Value:ThisItem,'Resource Requirement',
     Id:
     LookUp(
     YourOtherList,
     ResouceFieldName = ThisItem,'Resource Requirement'
     ).ID
     }
    }

     

    Please click Accept as solution 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 Thumbs Up.

  • zse Profile Picture
    2 on at

    Thanks for your reply!

     

    A couple of points of clarification:

     

    1 - the tables I am referring to are in Dataverse, not SharePoint

    2 - my code is below, OnChange, in regards to the Status field:

     

     

    ,msdyn_status:Dropdown5.Selected.Name
    ,msdyn_Status:Dropdown5.Selected

    which generates the error message for type mismatch.

     

    I have used this code in a Power App in a different environment for a different lookup value, not sure why it is not working for this the Status field

  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @zse ,

    Firstly, please include your data source in post - Lookup columns are in SharePoint, in DataVerse, they are Option Sets. This post may assist you.

     

    Please click Accept as solution 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 Thumbs Up.

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