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 / Error Patching to Data...
Power Apps
Answered

Error Patching to Dataverse Table - Invalid Argument Type (Guid). Expecting a table value instead

(0) ShareShare
ReportReport
Posted on by 35

HI 

 

I have a single dataverse table PEG_Data for a canvas app.  I am trying to Patch a collection to the table

 

ForAll(colPEG_Members, Patch(PEG_Data, Lookup('PEG_Data':Member = 'colPEG_Members':Member),{Member_Stat: Member_Stat, Record_Status: Record_Status}));

 

The first PEG_Data in the statement is giving me the Invalid Argument Type error.  

 

Any assistance would be appreciated

 

Marty

 

 

 

 

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @McKennaM03,

    Could you please show me the screenshot of your formula?

    Do you want to update the Dataverse table with the same Member?

     

    If you just want to update records that share the same Member with colPEG_Members, I think you could directly use the UpdateIf() function.

    ForAll(colPEG_Members, UpdateIf(PEG_Data, Member = 'colPEG_Members'[@Member],{Member_Stat: 'colPEG_Members'[@Member_Stat], Record_Status:'colPEG_Members'[@Record_Status]}));

     

  • McKennaM03 Profile Picture
    35 on at

    HI @v-qiaqi-msft

     

    Yes I am updating the records in table PEG_Data where Member = Member in colPEG_Data and updating two fields 

    I have changed my statement to match your proposal thanks.

    McKennaM03_0-1649327051380.png

     

    I am getting an Invalid Argument Type on the PEG_Data

     

    Marty

  • Verified answer
    McKennaM03 Profile Picture
    35 on at

    I've solved my issue.  I added the As operator to the collection

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