web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 408

#2
WarrenBelz Profile Picture

WarrenBelz 382 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 328 Super User 2025 Season 2

Last 30 days Overall leaderboard