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 / Lookup function giving...
Power Apps
Unanswered

Lookup function giving Invalid Argument Type

(0) ShareShare
ReportReport
Posted on by 4

Hi

 

I am fairly new to Powerapps and are struggling with a Lookup Function.

 

I have created a Viewform with sharepoint list "Hardware" as the datasource. The Viewform should Lookup a text value in the column "Title" and match it with the value displayed in a Datacard on the same screen. If it matches, it should display that record.

 

Currently my string looks as follow:

 

LookUp(Hardware, Title.Value = DataCardValue214_1.Text) --> In powerapps "Value", "=" and "Text" is underlined in RED.

 

The "Title" column is a single line text format and "DataCardValue214_1" is pulled from a different sharepoint list with a lookup column linked to the same "Hardware" list.

 

How do I fix this?

 

Please let me know if you need more info.

 

Thanks

Nico

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

    Have you tried this:

     

    LookUp(Hardware, Title = DataCardValue214_1.Text)
  • nicobuyspe Profile Picture
    4 on at

    Hi 

     

    I have tried it, but to no avail.

  • nicobuyspe Profile Picture
    4 on at

    It appears the issue is with the datacard type. It currently shows as "complex".

     

    I created a text box and made the value of the textbox "datacardvalue214_1" and it is underlined in red and the error message shows: "The property expects Text values, but this rule produces incompatible Control values".

     

    I have also tested the formula by removing the datacardvalue and replacing it with text of one of the records and it works then, so the issue is definitely with the type of datacardvalue.

     

    See below:

    LookUp(Hardware, Title = "Yealink T21P")

     

    Any idea how I could get the plain text value of the datacard "datacardvalue214_1" ? 

     

    Thanks

  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    What type of control is your data card value (Text box, Combo box, Drop down, date field or something else)?

  • sachinsoni Profile Picture
    51 on at

    having same issue...

     

    i have combo box control.

     

    my complete formula is:

    If(LookUp(EmpAndApprover,Approver=DataCardValue11,true), 

     

    red underline in datacardvalue11 

    error is invalid argument type

     

    New Error.jpg 

     

     

     

    Please help to solve

     

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard