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 / this type of the argum...
Power Apps
Unanswered

this type of the argument does not match the expected type record

(0) ShareShare
ReportReport
Posted on by 10

hi everyone, im encountering an error in patch function which says this type of the argument does not match the expected type record. found type table. would like to ask for your expertise as i am fixing this for hours now.

 

below is the formula. ExpenseType is a gallery field which is a combo box and i want to patch it to my SP list column which is a choice column.

i tried the {value:expensetype} since that is what i found on google but not working. thanks a lot!

 

ForAll(PCVCollection,Patch('PCV Detail',Defaults('PCV Detail'),{Particulars:Particulars,Amount:Amount,

PCVID:PCVMaster.LastSubmit.ID, ExpenseType:{Value:ExpenseType}}))

Categories:
  • turnerj3 Profile Picture
    2,039 on at

    @joyce2919 ,

    Are you Collecting Expense Type in the PCV collection? I would try that first.

  • joyce2919 Profile Picture
    10 on at

    Hi, yes i am collecting it first in the PCV collection since it is a repeating tables in a gallery type. then i am putting the above formula to the On Success of the Form.

  • turnerj3 Profile Picture
    2,039 on at

    @joyce2919 ,

    • It is something to do with how you are writing Value:ExpenseType in {}. It thinks it is a table. Can you say something like Expense Type:Combobox1.selected.value
    • Have you looked at your collection to see what column it is stored in?
  • joyce2919 Profile Picture
    10 on at

    joyce2919_0-1682409138535.png

    It is still not working. when i checked the column type of Expensetype in the collection, it is in table type. 

  • joyce2919 Profile Picture
    10 on at

    Hiii I think this is solved now. Since the expensetype in collections is a table type column, I changed the settings of SP column ExpenseType to allow multiple selections and in Power Apps, i just turned it off for that combo box. Not sure what happened, but it works like a charm 🙂 thank you for your help!

  • turnerj3 Profile Picture
    2,039 on at

    Good job @joyce2919 ! Glad you got it working.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard