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 / Patch issue The type o...
Power Apps
Unanswered

Patch issue The type of this argument does not match the expected type 'Record'. Found type 'Text'

(0) ShareShare
ReportReport
Posted on by 158

Hello,

 

Maybe someone can tell me what am I doing wrong here? I am trying to patch a form into table in dataverse but it shows me an error from my title. 

 

'Part' is a text lookup but in my form it is: Distinct('CORR infos', Part).Result It is looking at other table and returning distinct part numbers in dropdown box.

marcy_pi_0-1670413176865.png

 

 

 

Categories:
I have the same question (0)
  • LaurensM Profile Picture
    12,516 Moderator on at

    The Distinct function will give you a table with unique values, in this case part.
    According to your error description, the part column is expecting a Record value due to the Look Up type.
    However you are currently referring to the distinct result of type String.

     

    I don't know your database structure but this could be fixed by referencing the respective record via a LookUp:

     

     

    LookUp(PartsTable, Part = YourDataCard.Selected.Result)

     


    With this function we do expect that 'Part' is unique to each record in the look up table.


     I hope this helps.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @marcy_pi

    If you are using a form, why are you using patch instead of just SubmitForm()? If you delete the title field and add it back, what does the update property of the card show? 

  • MP-13011217-0 Profile Picture
    158 on at

    Hi, 

    If I use SubmitFrom() then I have the following error when I choose one of the options in my dropdown box: 

    marcy_pi_0-1670418121679.png

     

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 545 Most Valuable Professional

#2
Haque Profile Picture

Haque 314

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard