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

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

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard