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 - does not match...
Power Apps
Answered

Patch - does not match the expected type record, found type text

(0) ShareShare
ReportReport
Posted on by

Hi @PowerAddict and other experts, 

 

I am trying to automate the cash received using patch. I am so exciting. Having an issue for the Invoice number field

 

Annotation 2019-11-27 235419.jpg

 

Patch('Cash Received',Defaults('Cash Received'),{Date:DataCardValue180_2.SelectedDate},{'Customer Name':DataCardValue181_2.Selected},{Amount:Value(DataCardValue182_2.Text)},{'Invoice_x0020_Number':DataCardValue179_2.Text});Refresh('Cash Received');

 

Thank you 

Osmand

 

Categories:
I have the same question (0)
  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at
    Since the error states that a record is expected, you might want to lookup the invoices with the invoice number in the text field, using something like this:

    Lookup(Invoices, 'Invoice Number' = DataCardValue179_2.Text)

    You might have to convert the text value to a number using the Value function. L

    Let me know if this helps.

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

    Hardit Bhatia
    https://thepoweraddict.com
  • Verified answer
    OsmandFernando Profile Picture
    on at

    Thank you @PowerAddict  but it did not work, may be i did a mistake. What I did, I changed the field type from look up to Text in the SharePoint then did the formula

     

    Thank you so much

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