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 Error when recor...
Power Apps
Answered

Patch Error when recording to Sharepoint List - type of this argument does not match expected type 'Text'

(0) ShareShare
ReportReport
Posted on by 588

*My first post was marked as spam and removed, and I'm not sure why. If I'm using this forum wrong please let me know. My issue is below.*

Disclaimer: I'm a relative newbie on PowerApps and muddling my way through but I can't find the solution to this, though I have seen some people with similar errors but not exactly the same. I'm sure I'm probably missing something very simple.

 

I'm creating an app to update a sharepoint list, my Patch function works until I try to add on one of the drop downs. 

This works: 

Patch(Form, Defaults(Form), {'Full Name':InputFullNameSI.Text, 'Email Address': InputEmailSI.Text, 'Line Manager': InputLMNameSI.Text, LineManagerEmail: InputLMEmailSI.Text})

This doesn't:

Patch(Form, Defaults(Form), {'Full Name':InputFullNameSI.Text, 'Email Address': InputEmailSI.Text, 'Line Manager': InputLMNameSI.Text, LineManagerEmail: InputLMEmailSI.Text, Service: dpdServiceSI.Selected.Text})

The error I get is:

The type of this argument 'wm0l' does not match the expected type 'Text'. Found type 'Error'. 

 

I have tried changing it to Selected.Value at the end with the same error. I don't really understand what it's referring to by 'wm0l'.

 

The drop down causing the error is populated by another SharePoint list to create a cascading dropdown, which is the only thing I can think is different between this dropdown and another which is populated from the 'Items' function (and the Patch works with this one).

 

Any ideas what I've done wrong?

Categories:
  • KrishnaV Profile Picture
    5,023 on at

    Hi @misc ,

     

    try this:
    I believe that field is a choice field in SharePoint list so try this:

    Patch(Form, Defaults(Form), {'Full Name':InputFullNameSI.Text, 'Email Address': InputEmailSI.Text, 'Line Manager': InputLMNameSI.Text, LineManagerEmail: InputLMEmailSI.Text, Service:{Value:dpdServiceSI.Selected.Text}})


    I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

  • Verified answer
    misc Profile Picture
    588 on at

    Hi thanks for your answer but it wasn't that - the SharePoint list was formatted as single line of text, however, I was being silly and it needed to be Selected.Result not .Value or .Text so I have now worked that out. 

    I'm now having a similar but slightly different problem elsewhere in my function but I will mark this one as complete and raise a separate question if I can't fix that one. 

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 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard