web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard