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 / Invalid argument type ...
Power Apps
Unanswered

Invalid argument type (table), expecting a record value instead

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

 Hi there, I am following Reza Dorrani's  @Reza editable grid video and had created an edit button with the Onselect as 

If(
varGridEdit,
If(
!IsBlank(
LookUp(
colGridData,
Title = Blank() || Title = "" || IsEmpty(Provider) || IsBlank(Provider) || 'Contact person' = Blank() || 'Contact person' = ""
)
),
Notify(
"Please fill required fields",
NotificationType.Error,
2000
),
Patch(
'Engagement Scheduler',
UpdateIf(
colGridData,
Created = Blank(),
{ID: Blank()}
)
);


Select(btnLoadData);

Set(
varGridEdit,
!varGridEdit
)
);
);

 

The patch gives the Invalid Argument type error. Can anyone help?
Thanks

Categories:
I have the same question (0)
  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @Anonymous ,

    You have to be sure that colGridData collection has the same structure as ‘Engagement Scheduler’ datasource.

    Also instead of Blank for ID use 0.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @gabibalaban  this is the structure of colGridData
    Patch(
    colGridData,
    ThisItem,
    {
    Title: Title.Text,
    Provider: Provider.Selected,
    Purpose: Purpose.Text,
    'Agreed actions': Agreedactions.Text,
    'Date of meeting/call': Dayofmeeting.SelectedDate
    }
    )
    and this is my DL

    Srijith29_0-1651744058689.png

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard