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
Unanswered

Patch Error: The type of argument does not match the expected type 'Table'. Found Type 'Text'.

(0) ShareShare
ReportReport
Posted on by 2

Hello Team,

 

I have SharePoint List and form of SharePoint is being customized with Power Apps. I have a multiple choice column "Pre_x002d_AlertNotificationRecei" in SharePoint with feature "Allow Fill In" is enabled and after customizing with Power app this feature is not working.   I got an alternate solution to add text input "TextInput1" and Button control so that whenever user doesn't find value in choice column they can write new value in "TextInput1" and through Add button then value will be appending in choice column which further will be visible to user.

 

To achive this, I am writing a Patch Code in "OnSelect" control of button but getting an patch error " The type of argument "Pre_x002d_AlertNotificationRecei" does not match the expected type 'Table'. Found Type 'Text'.

 

Below is the code that I have written:

If(
            Not(IsEmpty(Filter(Choices([@'Test List Power Apps'].Pre_x002d_AlertNotificationRecei), Value = TextInput1.Text))),
            Notify("Value already exists", NotificationType.Error),
            Patch(
                'Test List Power Apps',
                Defaults('Test List Power Apps'),
                {
                    Pre_x002d_AlertNotificationRecei : TextInput1.Text
                    }
                }
            );
            Reset(TextInput1)

)

 

Please give me a solution that can fix this issue. Let me know if you want more detail on this.

 

 
Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    he @SRohil01 

     

    can u try this:

    If(
     Not(IsEmpty(Filter(Choices([@'Test List Power Apps'].Pre_x002d_AlertNotificationRecei), Value = TextInput1.Text))),
     Notify("Value already exists", NotificationType.Error),
     Patch(
     'Test List Power Apps',
     Defaults('Test List Power Apps'),
     {
     Pre_x002d_AlertNotificationRecei: Table({Value: TextInput1.Text})
     }
     );
     Reset(TextInput1)
    )
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • SRohil01 Profile Picture
    2 on at

    Hi @mmbr1606 

     

    I am not getting any error. But the code is not working. The value is not appending with value present in choice column. Is there any alternate code that can help?

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard