Skip to main content

Notifications

Power Apps - Building 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:
  • Drrickryp Profile Picture
    Drrickryp on at
    Re: Patch issue The type of this argument does not match the expected type 'Record'. Found type 'Text'

    @marcy_pi 

    See https://powerusers.microsoft.com/t5/Microsoft-Dataverse/Value-must-be-a-data-entity-record/td-p/931611 

  • MP-13011217-0 Profile Picture
    MP-13011217-0 158 on at
    Re: Patch issue The type of this argument does not match the expected type 'Record'. Found type 'Text'

    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
    Drrickryp on at
    Re: Patch issue The type of this argument does not match the expected type 'Record'. Found type 'Text'

    @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? 

  • LaurensM Profile Picture
    LaurensM 12,510 on at
    Re: Patch issue The type of this argument does not match the expected type 'Record'. Found type 'Text'

    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.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard