cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tobystatham
Advocate IV
Advocate IV

Invalid Argument Type in Filter function on a Common Data Model entity

I have the following Filter function Filter(Request, 'Site Type'.SiteTypeId=SiteTypeGallery.Selected.SiteTypeId, 'Request Status'="New Request")

 

On both the equal operators there a red squiggly line that says "Invalid Argument Type"

 

SiteTypeId is a number sequence field and 'Request Status' is a text field.

1 ACCEPTED SOLUTION

Accepted Solutions
rgruian
Power Apps
Power Apps

In PowerApps, the '=' operator can only compare primitive values: text, booleans, numbers, date/time values, etc. Please make sure that the values being compared in this case for each row are, in fact, primitive. That not being the case is the most likely reason you are seeing this error.

 

Radu Gruian [MSFT] ** PowerApps Staff

View solution in original post

4 REPLIES 4
rgruian
Power Apps
Power Apps

In PowerApps, the '=' operator can only compare primitive values: text, booleans, numbers, date/time values, etc. Please make sure that the values being compared in this case for each row are, in fact, primitive. That not being the case is the most likely reason you are seeing this error.

 

Radu Gruian [MSFT] ** PowerApps Staff

Thanks, it was partly user error Smiley Sad I had two columns with similar names. Using the other one works.

 

Just to let you know that you can use the Number Sequence field for this type of situtation and it works

Great, glad to hear that.

Radu Gruian [MSFT] ** PowerApps Staff

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,988)