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

(0) ShareShare
ReportReport
Posted on by 12

Hi,
Please I need support with my problem

I'm trying to update the default value for a Data Card with the formula below but I'm getting an invalid argument type

 

'Compare List Gallery'.Selected.ManufacturerName & " - " & 'Compare List Gallery'.Selected.'Device Name'

 

If I used 'Compare List Gallery'.Selected.ManufacturerName or 'Compare List Gallery'.Selected.'Device Name' as a value alone it works fine so I expect that there's something wrong with the formula itself.

Please note I copied the formula from Microsoft PowerApps in a Day training material so it should be working fine.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,100 Most Valuable Professional on at

    Hi @arseyam ,

    What type of field are you writing back to? If it is Text, this should be valid on the Update of a Data Card referencing that field.

  • arseyam Profile Picture
    12 on at

    Yes it is a text field but I don't know why I'm getting an error.

  • WarrenBelz Profile Picture
    156,100 Most Valuable Professional on at

    Hi @arseyam ,

    Put the same code in a label and see if you get the expected result displayed.

  • arseyam Profile Picture
    12 on at

    I got the same error with a label

  • WarrenBelz Profile Picture
    156,100 Most Valuable Professional on at

    Hi @arseyam ,

    Something strange here - I actually have the same list here (from an MS workshop) - label Text as below

    GalleryCombine.png

    Your code is correct provided your references are also.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • arseyam Profile Picture
    12 on at

    Exactly, something doesn't make sense
    How can I troubleshoot the problem?

  • WarrenBelz Profile Picture
    156,100 Most Valuable Professional on at

    Hi @arseyam ,

    It is possible this is another result of this current known bug on the latest authoring version (although I have not seen this one before), but you could set a Variable on the OnSelect of the Gallery and use that to update.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • WarrenBelz Profile Picture
    156,100 Most Valuable Professional on at

    Hi @arseyam ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • arseyam Profile Picture
    12 on at

    Hi Warren,

    I haven't tried the variable, I just started another lab and gave up on this one 😅

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard