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: the type ...
Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on by 588

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'.

 

Edit: That drop down in particular 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).

 

Any ideas what I've done wrong?

Categories:
I have the same question (0)
  • Mr-Dang-MSFT Profile Picture
    Microsoft Employee on at

    Hi @misc 

    I formatted your formula for readibility:

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

     

    It looks like the difference between the two formulas is the Service line. If this is what is causing you issues, I would check what dpdServiceSI.Selected.Text is showing in a label on the screen. 

     

    What is the data type of the Service column? 

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@misc,

    Based on the issue that you mentioned, do you want to patch dropdown selected value to the 'Service'  column?

    As @Mr-Dang-MSFT said, the data type of the 'Service'  column is the key. Could you please share more about the 'Service'  column, post your formula put in the Items property of the dpdServiceSI.

    If you want to patch value to the SP column, you should make the data type matched. I assume that the 'Service'  column is a Text type in the SP list.

    I have a test on my side which proves that the formula you provided works if the 'Service'  column is Choice type. So I make the 'Service'  column a Text type.

    Please modify your formula as below

     

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

     

    Just change dpdServiceSI.Selected.Text  to dpdServiceSI.Selected.Service

    Best Regards,

    Qi

  • Verified answer
    misc Profile Picture
    588 on at

    @Mr-Dang-MSFT and @v-qiaqi-msft 
    This post duplicated as it was originally marked as spam so sorry -mI'd marked this as complete on the other and can't find how to delete the thread. Nonetheless, I found the answer.

     

    The column was formatted as a Single Line of Text, but I needed to have Selected.Result rather than .Value, apparently. I believe this is because the dropdown was populated by linking it with another Sharepoint list as a data source in order to create a cascading dropdown

     

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,055

#2
Valantis Profile Picture

Valantis 666

#2
11manish Profile Picture

11manish 666

Last 30 days Overall leaderboard