cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted

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

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

 

1 ACCEPTED SOLUTION

Accepted Solutions

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

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

View solution in original post

2 REPLIES 2
PowerAddict
Level 10

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

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

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

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

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,160)