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 for CSV data upd...
Power Apps
Unanswered

Patch for CSV data updation in PowerApps is showing Error

(0) ShareShare
ReportReport
Posted on by 4

Hi,

 

I was developing a power app to convert the data in CSV file to sharepoint list. I was following the below youtube video

https://www.youtube.com/watch?v=P6yqIpjmPrs

Unfortunately I am facing an error in the final stage " The type of arguments does not match with the expected type 'Record', Found type 'Record'.

 

 Below is the code I wrote, any help is appreciated.

 

If(
CountRows(ColDataImport)>0,
Set(
varNumber,varNumber+1);

ForAll(
ColDataImport,
Collect(
ColGridData,
Patch(
varNewRecord,
{
ID:varNumber,

HAWBCHECK :{
Value:(Last(
FirstN(
ThisRecord.Value.Result,
2
).Result
).Result)
},
InvoiceNo:{
Value: Last(
FirstN(
ThisRecord.Value.Result,
3
).Result
).Result
}

Categories:
  • Jibu Profile Picture
    4 on at

    Adding more to the issue,

     

    Here HAWBCHECK number is a lookup field, and it is the one throwing the error. The data type is  not matching for this data type.

     

    In the tutorial the code was for a dropdown select, will there be a difference for Lookup column?

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard