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 - Error "T...
Power Apps
Answered

Patch Issue - Error "The type of this argument (column name) does not match the expected type 'Text'. Found Type 'Error'

(0) ShareShare
ReportReport
Posted on by 32

Hello Everyone, I'm a newbie when it comes to PowerApps and on process of learning it. Right now, I am currently building an app using PowerApps and using Sharepoint as my datasource.

 

Issue:

I have a combo box on one of my screen and if the value entered is not listed on my column, then the entered text should be accepted as a normal text.

 

Hawold_0-1642580552490.png

Items Property = (Column Name)

 

Now, I added a Label to reflect the data entered from the combo box:

Hawold_1-1642580573814.png

Text Property - ComboBox2.SearchText

 

Then, I added a button that should submit the data from the label (which is dynamic)

 

OnSelect Property - Patch('SP Name',Defaults('SP Name'), {'Column Name': {Value: "Label4.SelectedText.Value"}})

 

Hawold_2-1642581145871.png

 

Please advise.

 

Thank you!

 

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    Hi @Ha-wold ,

    Firstly, you should be using ComboBox.Selected.Value (not SearchText), but if you are Patching back to a Text field

    Patch(
     'SP Name',
     Defaults('SP Name'), 
     {'Column Name': ComboBoxName.Selected.Value}
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

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
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard