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 / Trying to use Patch co...
Power Apps
Answered

Trying to use Patch command to update records in Inspections, an SQL table and getting and error on the command.

(0) ShareShare
ReportReport
Posted on by 20

Hello,

I am trying to use the Patch command,

Patch(

     PAT,

      colInspection

);

the table PAT is an Azure SQL table.  The issue is that the colInspeciton gives the following error "Invalid argument type (Table). Expecting a Record value instead".  I have no idea how to resolve this error.  Any suggestions on how to resolve this issue or what to look for?

 

Thanks in advance for your help.

Kind regards,

 

Categories:
I have the same question (0)
  • Rusk Profile Picture
    1,369 Super User 2024 Season 1 on at

    Please disregard this as I completely misunderstood your issue 😅

  • Verified answer
    WarrenBelz Profile Picture
    156,456 Most Valuable Professional on at

    Hi @Johnh1 ,

    For that code to have a chance of working, every field in colInspection needs to exist in PAT in both name and field type. I assume you are trying to add new records here.

  • Johnh1 Profile Picture
    20 on at

    Hi @warren,

    That is what I thought Warren and yes, I am adding new records.  Thanks for the update.  I am going to review the field names in the colInspection and PAT and make sure they are all equal.  Thanks again for the 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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard